Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The transition does not work with dynamic routes #21

Open
ktisakib opened this issue Jun 9, 2024 · 6 comments
Open

The transition does not work with dynamic routes #21

ktisakib opened this issue Jun 9, 2024 · 6 comments

Comments

@ktisakib
Copy link

ktisakib commented Jun 9, 2024

No description provided.

@mpresecan
Copy link

It works on my side, but only in development mode, after I restart development server. But for some reason when I push it to production on Vercel, it does not work properly - the SSG pages are not cached via edge CDN, but are server via serverless functions, and the view transition effect is not working at all.

@vuvanthuan
Copy link

Same issue

@AlaaMX
Copy link

AlaaMX commented Nov 13, 2024

Same ...

@bregtemundo
Copy link

I had the same issue. My problem was the layout.tsx (with element) was in the same folder as the page.tsx . I needed to create a layout 1 level up and move the ViewTransitions there.

@JolomiTee
Copy link

Just encountered the same.

I had the same issue. My problem was the layout.tsx (with element) was in the same folder as the page.tsx . I needed to create a layout 1 level up and move the ViewTransitions there.

Could you explain how you circumb=vented the problem a bit further? @bregtemundo

@bregtemundo
Copy link

@JolomiTee In my specific case

I had:
[locale]/[[...slug]]/page.tsx (containing the transition)
[locale]/[[...slug]]/layout.tsx (containing )

It worked when I changed it to:
[locale]/[[...slug]]/page.tsx (containing the transition)
[locale]/layout.tsx (containing )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants