fix: only skip segment reuse for children slot with built-in default
The IsBuiltinNotFoundDefault flag was preventing reuseActiveSegmentInDefaultSlot() for ALL slots with the built-in default, breaking legitimate parallel route navigations (modals, drawers) where children should keep old content. This fix adds hasSiblingWithSpecificPage() to check whether sibling parallel slots have specific (non-catch-all) page matches. When they do, the URL is intentional for the parallel route structure and children should be reused. Only skip reuse when all sibling matches are catch-all or default segments, which indicates a truly nonexistent route that should 404. Also fixes the test fixture: removed params from the catch-all page to avoid prerendering errors with cache components, where dynamic route segment config is not compatible.
Showing
Please
register
or
sign in
to comment