Commit 1c5a06a
committed
fix: remove View Transitions from same-layout swap + cache-bust fetches
Two fixes:
- Remove startViewTransition from swapSlotContent to eliminate race
conditions where custom elements aren't upgraded during the
transition animation. Add a deferred microtask upgrade pass instead.
- Add cache: 'no-store' to client router fetches so navigating back
to a page always gets fresh server-rendered HTML (critical for
seeing newly created posts without a full reload).1 parent 306c512 commit 1c5a06a
1 file changed
Lines changed: 8 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
149 | 149 | | |
150 | 150 | | |
151 | 151 | | |
| 152 | + | |
152 | 153 | | |
153 | 154 | | |
154 | 155 | | |
| |||
250 | 251 | | |
251 | 252 | | |
252 | 253 | | |
253 | | - | |
254 | | - | |
255 | | - | |
256 | | - | |
257 | | - | |
258 | | - | |
259 | | - | |
260 | | - | |
261 | | - | |
262 | | - | |
263 | | - | |
264 | | - | |
265 | | - | |
266 | | - | |
267 | | - | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
268 | 261 | | |
269 | 262 | | |
270 | 263 | | |
| |||
0 commit comments