Next.js 13.4 app directory prefetch/hydrate questions
Hi Guys, Alka here
Right now i try to build my own personal blogs, preiously i try to make bloglist that has pagination with helps of tanstack query, which right now is working perfectly, but since it became client side components, i have some concen for my blog SEO so i want to use prefetching.
I have a questions for how to hydrate the client side components
here is my layout.tsx
(i attach in the attachement)
here is my BlogList.tsx
(i attach in the attachement)
i also implement the note or issues and its solutions that mentioned in the documentaions
1. providers
2. issues with typescript regarding the Hydrate (i use separate file called HydrateClient.tsx)
3. and use query-core for QueryClient and dehydrate when i import the functions.
i get error from my nextjs.
here is the error
Right now i try to build my own personal blogs, preiously i try to make bloglist that has pagination with helps of tanstack query, which right now is working perfectly, but since it became client side components, i have some concen for my blog SEO so i want to use prefetching.
I have a questions for how to hydrate the client side components
here is my layout.tsx
(i attach in the attachement)
here is my BlogList.tsx
(i attach in the attachement)
i also implement the note or issues and its solutions that mentioned in the documentaions
1. providers
2. issues with typescript regarding the Hydrate (i use separate file called HydrateClient.tsx)
3. and use query-core for QueryClient and dehydrate when i import the functions.
i get error from my nextjs.
here is the error
BlogList.tsx5.49KB
layout.tsx5.49KB