Commit af1c557
fix(editor): return to the same timeline page after editing an echo
Editing an old echo used to jump back to the newest post: on update
success the store called resetHomeTimelineState + refreshEchos (page→1)
+ jumpToHomeTimeline (drops all query), and entering edit mode replaced
the whole route query with {tab:'publish'}, dropping ?page.
Now entering edit mode preserves the existing query (?page etc.), and on
update success we only strip ?tab and navigate back. The timeline remounts
and refetches the same page from the server (which already reflects the
edit), so the user lands on the page containing the echo they just edited.
Search/tag-filter context is preserved too. New-post (add) flow is
unchanged — it still jumps to the top.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 4681338 commit af1c557
2 files changed
Lines changed: 13 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
227 | 227 | | |
228 | 228 | | |
229 | 229 | | |
| 230 | + | |
230 | 231 | | |
231 | 232 | | |
232 | | - | |
| 233 | + | |
233 | 234 | | |
234 | 235 | | |
235 | 236 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
86 | 94 | | |
87 | 95 | | |
88 | 96 | | |
| |||
242 | 250 | | |
243 | 251 | | |
244 | 252 | | |
245 | | - | |
246 | 253 | | |
247 | | - | |
248 | 254 | | |
249 | 255 | | |
250 | 256 | | |
251 | 257 | | |
252 | | - | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
253 | 261 | | |
254 | 262 | | |
255 | 263 | | |
| |||
0 commit comments