In this tutorial, you'll learn how to set up and use Redux Toolkit and RTK Query in your Next.js 13 project. It's worth noting that at the time of writing, Next.js 13 is still in beta.
- Setup the Next.js 13 Project
- Setup the Redux Store
- Define Typed Hooks
- Define a Custom Provider
- Provide the Redux Store to Next.js 13
- Create the Redux State Slice and Action Types
- Add the Slice Reducer to the Store
- Use Redux State and Actions in the Next.js 13 App Directory
- Create the RTK Query API Service
- Add the RTK Query API Service to the Store
- Use RTK Query in the Next.js 13 App Directory
Read the entire article here: https://codevoweb.com/setup-redux-toolkit-in-nextjs-13-app-directory/