This project was bootstrapped with Create React App, using the Redux and Redux Toolkit TS template.
It shows some basic use cases for RTK:
- Fetch data with actions, async actions, using Redux Thunk;
- Handle data (query/mutation) using the entity adapter;
- Handle data (query/mutation) data with RTK query (some use cases including useQuery, useLazyQuery, useQuerySubscription + useQueryState);
- Prefetching;
- Patch data with Event Source;
- Data caching (API call optimization);
- Custom middleware: request status feedback and action dispatch logging.
Data fetching is performed using reqres.in.