Commit 72ce8b5
committed
[Segment Cache] Re-implement refresh reducer
This re-implements the refresh reducer to use the Segment Cache-style
flow, similar to how the navigate reducer already works.
Most of the logic can be reused from what was already implemented for
navigations. The bulk of the changes are related to the case where
a "default" parallel route slot is not present on the current page, and
so needs to be refreshed from an older page's URL.
Theoretically, this should be the last remaining case where we rely on
the lazy fetching logic in LayoutRouter. I think there may still be some
error cases where we still rely on that, though. Once these are all
addressed, we can remove the lazy-fetching mechanism entirely.1 parent dcb6235 commit 72ce8b5
File tree
21 files changed
+780
-153
lines changed- packages/next/src/client/components
- router-reducer
- reducers
- segment-cache-impl
- test
- e2e/app-dir/segment-cache/refresh
- app
- dashboard
- @main
- analytics
- components
21 files changed
+780
-153
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
374 | 374 | | |
375 | 375 | | |
376 | 376 | | |
| 377 | + | |
| 378 | + | |
377 | 379 | | |
378 | 380 | | |
379 | 381 | | |
| |||
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
75 | 77 | | |
76 | 78 | | |
77 | 79 | | |
| |||
0 commit comments