You can call getState() over a store to get the list of reducers and the current state inside the reducers.
- Import the
storeintoauditLoading(use store to get values. Don’t mutate the store) store.getState().auditLoadingwill give you the state ofauditLoadingreducer.
This approach is similar to the callback provided by redux-thunk. In which (dispatch, getState) => {} will be returned to the action.