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?
April 19th 20 at 12:18
1 answer
April 19th 20 at 12:20
redux-thunk
I originally used but there was a problem which I described in the question - Carolanne_Breitenbe commented on April 19th 20 at 12:23
@Carolanne_Breitenbe, there is an assumption that inside a thunk'do not dispatch - trenton_Barrows commented on April 19th 20 at 12:26
Maybe you have reducer what that mutate state? getState supposed to work if you do it right. - Lenny.Farrell commented on April 19th 20 at 12:29

Find more questions by tags ReduxReactJavaScript