parallel route defaults and nested routes
Unanswered
Polar bear posted this in #help-forum
Polar bearOP
Is it possible to set a up a parallel route that provides a default for all descendant paths? Use case I'm working on is a nav section that changes as you navigate deeper into the sites. Configuration I desire is something like this:
So far this works if I client navigate from
Am I missing something? Shouldn't the closest ancestor default for the slot be rendered if there isn't an explicit match? Otherwise I'd need to stub out tons of repetitive pages/defaults for what seems like a typical use case
-app
--@nav
---default.tsx <-- root nav
---foo
----page.tsx
----default.tsx <-- deep nav
--foo
---page.tsx
---bar
----page.tsx
--page.tsx
--layout.tsx <-- renders @navSo far this works if I client navigate from
/ -> /foo -> /foo/bar , but if I hard reload from /foo/bar it renders the "root" @nav instead of the one at @nav/foo/default.tsx.Am I missing something? Shouldn't the closest ancestor default for the slot be rendered if there isn't an explicit match? Otherwise I'd need to stub out tons of repetitive pages/defaults for what seems like a typical use case