That docs page is effectively also the migration guide. Switch your store setup, then migrate one slice reducer at a time.
It also comes with a new "RTK Query" API that completely abstracts the entire data fetching and caching process, and can remove the need to write any thunks or caching reducers whatsoever if you choose to use it:
RTK already enables the thunk middleware by default:
and includes a
createAsyncThunk
utility that abstracts the typical "dispatch actions before and after the request" pattern:That docs page is effectively also the migration guide. Switch your store setup, then migrate one slice reducer at a time.
It also comes with a new "RTK Query" API that completely abstracts the entire data fetching and caching process, and can remove the need to write any thunks or caching reducers whatsoever if you choose to use it:
Thank you for all these details, I will check it out :D