In action get access to the state redux?
When I do the dispatch using a function in which I need access to global State. Initially used circuit and method getState:
export function addToPreList(name, count){
return (dispatch, getState) => {
}
}
but in this case I for some reason was not updated props of the component that received the properties by using the connect(mapStateToProps)
Is there any other way to access the global State?
1 answer
Find more questions by tags ReduxReactJavaScript