statusReducer - rootstrap/redux-tools GitHub Wiki
The statusReducer keeps track of the status of your ongoing actions.
You need to pass the statusReducer under the 'statusReducer' key. Otherwise, it won't work.
You can use useLoading and useStatus to check the status of an action.
And you can dispatch the reset action of a thunk to reset the status of a specific action.
Configuration:
// src/reducers/index.js
import { combineReducers } from 'redux'
import { statusReducer } from '@rootstrap/redux-tools'
const rootReducer = combineReducers({
// ...your other reducers here
// you have to pass statusReducer under 'statusReducer' key,
statusReducer
})