reduxjs / redux-templates

Official Redux templates for Vite, Create-React-App, and more
https://redux.js.org
MIT License
1.43k stars 252 forks source link

Add RTK Query to the templates #91

Closed markerikson closed 10 months ago

markerikson commented 1 year ago

Our templates currently just have a small "counter slice" set up. There's an async thunk included, but it's pretty simple.

Today we want users to fetch data with RTK Query.

We should configure the templates to have RTKQ set up out of the box, and have a small example endpoint set up. (It should probably still do mock data of some kind, but not immediately sure how.)