Commit c5b77e7
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 3676d72 commit c5b77e7
File tree
18 files changed
+738
-247
lines changed- packages/next/src/client/components
- router-reducer
- reducers
- segment-cache
- test/e2e/app-dir/segment-cache/refresh
- app
- dashboard
- @main
- analytics
- components
18 files changed
+738
-247
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