Commit 954354f
authored
[Segment Cache] Re-implement refresh reducer (#84426)
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 83ae64f commit 954354f
File tree
19 files changed
+674
-259
lines changed- packages/next/src/client/components
- router-reducer
- reducers
- segment-cache
- test/e2e/app-dir
- app-client-cache
- segment-cache/refresh
- app
- dashboard
- @main
- analytics
- components
19 files changed
+674
-259
lines changedLines changed: 0 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | 11 | | |
13 | 12 | | |
14 | 13 | | |
| |||
64 | 63 | | |
65 | 64 | | |
66 | 65 | | |
67 | | - | |
68 | | - | |
69 | 66 | | |
70 | 67 | | |
71 | 68 | | |
| |||
0 commit comments