Nextjs hydratation error #546
|
When I re-render the page, I have hydratation error, How I can init default nuqs param with SSR/page mode ? |
Answered by
electroheadfx
Apr 23, 2024
Replies: 2 comments
|
Could you give us more context about your setup please? ( From your comment, I assume you are using the Pages router in Next.js, in a statically optimised page. If so, start with #290 and see if isolating your searchParams-enabled components from the build render helps. Otherwise, for a true SSR (at request time) page, you'd need to use |
0 replies
|
you are right, it works now with a getServerSideProps, I forgot it, thanks ! |
0 replies
Answer selected by
franky47
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
you are right, it works now with a getServerSideProps, I forgot it, thanks !