Commit 7b9b01c
authored
fix(frontend): prevent flash of empty seed opinion page during conversation creation (#410)
When creating a conversation with seed opinions, the page briefly flashed
showing the seed opinion form without any opinions before navigating to the
final conversation page.
The issue was caused by clearing the conversation draft (via createEmptyDraft)
before router navigation completed. Since conversationDraft is a reactive Pinia
store, clearing it immediately triggered a re-render with empty seed opinions,
creating a visible flash of the empty state.
Changes:
- Move createEmptyDraft() call to after router.replace()
- This ensures the component keeps its seed opinion data visible during navigation
- The component unmounts with data intact, preventing the empty state flash
This provides a smooth transition from the review page to the conversation page
without intermediate UI flashes.1 parent c567ca9 commit 7b9b01c
1 file changed
Lines changed: 3 additions & 2 deletions
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
336 | 336 | | |
337 | 337 | | |
338 | 338 | | |
339 | | - | |
340 | | - | |
341 | 339 | | |
342 | 340 | | |
343 | 341 | | |
| |||
348 | 346 | | |
349 | 347 | | |
350 | 348 | | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
351 | 352 | | |
352 | 353 | | |
353 | 354 | | |
| |||
0 commit comments