I'm new to next.js and got confused about 'hydrate' reducer in the extraReducers I've read couple articles about next.js hydration and I'm not sure if I'm right, but do I only need it when I use SSR pre-rendering approach and I don't need it with the static generation approach ?
Asked
Active
Viewed 107 times
0
-
Hydration occurs in both SSR and SSG (see https://nextjs.org/docs/basic-features/pages#pre-rendering). You do need the `HYDRATE` reducer for static generated pages. – juliomalves Oct 15 '22 at 13:36