Next.js Discord

Discord Forum

Next.js Redux is it possible to prefetch data and hydrate it on client similar to react-query ?

Unanswered
West African Crocodile posted this in #help-forum
Open in Discord
West African CrocodileOP
So in react-query i have ability to fetch the data on server side and de/hydrate data on client which makes data immediately (on first render) available to client is there similar feature in redux ?

Like here https://tanstack.com/query/latest/docs/framework/react/guides/advanced-ssr#prefetching-and-dehydrating-data

8 Replies

Toyger
yeah they have full tutorial on that
https://redux.js.org/usage/nextjs#introduction
West African CrocodileOP
I checked documentation as well issue is i want to modify already existing global store
did i skiped something important ?
@West African Crocodile did i skiped something important ?
Toyger
as they mentioned here https://redux.js.org/usage/nextjs#per-route-state you can replace part of already existing store
West African CrocodileOP
FAAK
i noticed it now
horus i love you
so much