I'm using React Native to build an offline app, and, because I need to pass many data between screens, I decided to use redux. However, I have a doubt concerning the dispatch method. The dispatch method is synchronous right? So what happens when I have code after that dispatch, which depends on the changes that the dispatch made? For example, I have this function:
make_action(){
this.props.dispatch(action());
//rest of the code
}
How can I make sure that the "rest of the code" only runs after the dispatch is completed? Thank you all!!