Repository navigation
Commit 6c639c3
fix(web): leaving the home page while the app loads no longer bounces you to a new draft
The home page opens a draft for the latest project once threads load. It
stays mounted while a navigation away from "/" is still loading, but the
router already points at the new page, so the draft step's own
"did the route change?" guard saw no change and replaced the page the user
picked. Tapping "Get the beta app" in the Nightly popup during startup hit
this: Settings opened, then the app jumped to a new draft.
Only start the draft while the router is still on "/".
Co-Authored-By: Claude Opus 5.5 <[email protected]>1 parent 5753207 commit 6c639c3
1 file changed
Lines changed: 8 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
47 | 51 | | |
48 | 52 | | |
49 | 53 | | |
| |||
56 | 60 | | |
57 | 61 | | |
58 | 62 | | |
59 | | - | |
| 63 | + | |
| 64 | + | |
60 | 65 | | |
61 | 66 | | |
62 | 67 | | |
| |||
0 commit comments