To get a local copy up and running follow these simple steps.
- Clone the repo
git clone https://github.com/adefrutoscasado/redux-toolkit-example-project
- Install NPM packages
npm install
- Start the mock server
npm run mock-server:dev
- Start the frontend application
npm start
- JWT refresh token strategy.
- Use of
mutex
to avoid repeating token refresh requests. - Use of
createAsyncThunk()
,isAsyncThunkAction()
,isPending()
,isRejected()
,isFulfilled()
,createAction()
,isAnyOf()
utils. - Use of
unwrap()
.
- Use of
createSlice()
,createAsyncThunk()
.
- Todo list.
- Use of
createEntityAdapter()
, itssortComparer
and its CRUD operations. - Use of
prepare()
function.
- A blog integrated with a mock server.
- Use of
createApi()
. - Use of
createEntityAdapter()
. - Tag invalidation.
- Implementation of normal updates and optimistic updates.
- Displays pets of persons.
- Use of
createApi()
. - Use of
createEntityAdapter()
. - Get selectors dinamically based on the arguments you used in the query of
createApi()
.