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

Use ServerStyleSheet on NextJs app router #426

Open
diegoprestes opened this issue Nov 14, 2024 · 0 comments
Open

Use ServerStyleSheet on NextJs app router #426

diegoprestes opened this issue Nov 14, 2024 · 0 comments

Comments

@diegoprestes
Copy link

Hey, I currently use this ServerStyleSheet feature in my NextJs application using the pages router.

I'm trying to migrate now my site to use the app router, but I'm having problems to use it there. If I try to use the same approach we have in the docs it requires me to use the use client which will render the page in the browser and not in the SSR anymore. This gives a bad experience because it takes sometime until the CSS is loaded and the page has a small flick in the start.

Any ideas of how to use this feature in nextjs with app router?

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

1 participant