Next.js Discord

Discord Forum

Page transitions in template only work once built

Unanswered
Thrianta posted this in #help-forum
Open in Discord
ThriantaOP
This transition only works on hard reload in dev, and gets stuck in the "initial" variant on page changes. But, once built, functions as expected.

6 Replies

ThriantaOP
cool having a look now
ThriantaOP
i noticed you pass your template div a key. i added that and it works in my project. (edit, it didnt) although i thought this was the point of template vs layout already.
actually its still not working with the pathname being used as the key
ThriantaOP
i downgraded from nextjs 15 to 13 and everything worked as expected 🧐