Accessing a reducer state from within another reducer
You can call getState() over a store to get the list of reducers and the current state inside the reducers. Import the store into auditLoading (use store to get values. Don’t mutate the store) store.getState().auditLoading will give you the state of auditLoading reducer. This approach is similar to the callback provided by redux-thunk. In which … Read more