Android Update Internet Latest news Technology Reviews

redux: Refactor RTK Query to Use a Normal Redux Toolkit Store

Instructor: [0:00] We’re still using the ApiProvider here. Let’s swap that out for a normal Redux store. [0:06] To do that, we import { configureStore } from ‘@reduxjs/toolkit’ and we import { Provider } from ‘react-redux’. With those, we can all go down here and recreate a store variable with configureStore, pass in a reducer, […]