Parallel Intercepted Routes refresh behavior #67934
Unanswered
step2341
asked this question in
App Router
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I've seen a couple of examples and have setup parallel intercepting routes using nextjs 14.2.5 to successfully show a modal to a user when needed. I have received feedback from our client that they dont like the behavior that if they refresh the route the underlying content of the page changes to the page rendered in the modal instead of staying on the page they were on before opening the modal.
This statement from the docs is misleading: "Parallel Routes can be used together with Intercepting Routes to create modals. This allows you to solve common challenges when building modals, such as: Making the modal content shareable through a URL. Preserving context when the page is refreshed, instead of closing the modal."
We aren't truely preserving context so far with this method... Is there anyway we can truely preserve the context? i.e. user is on page A, a modal loads (page B), and they can still see page A in the background. If they refresh the browser, things stay the same, rather than page B replacing page A in the background.
Beta Was this translation helpful? Give feedback.
All reactions