kirill-konshin / next-redux-wrapper

Redux wrapper for Next.js
MIT License
2.67k stars 265 forks source link

Question about using Redux Tookit #480

Closed felpsio closed 2 years ago

felpsio commented 2 years ago

There is one detail that is not clear to me from the documentation related to the Redux Toolkit.

The example suggest that we need to use extraReducer with HYDRATE for all the slices. Is this right? Or we should create something like an additional slice to wrap all the other reducers?

kirill-konshin commented 2 years ago

This is personal preference. You can handle hydrate in every slice independently, or globally as in the example.