Next.js Discord

Discord Forum

Template.tsx for page transition conflict with parallel intercepting route

Unanswered
swmarco01 posted this in #help-forum
Open in Discord
Hello guys,

To implement the page transitions I had to add a template with the loading component inside and add the pathname as the key of the loading container (otherwise it is not re-rendered for each route change, only for those on the same level). The problem now is that I have implemented a parallel intercepting route to open a modal with the login form, but when I open it obviously the loading component is rendered.

what can I do to avoid this?

Thanks

The template.tsx is attached

0 Replies