Answer the question
In order to leave comments, you need to log in
React redux multiple actions at the same time how?
Actually, you need to update the state of the Redux store to a certain state, there are several actions for this. They can be called sequentially as follows:
this.props.ChangeReportDetailShowAction(value);
this.props.ChangeReportChildActiveAction(value);
this.props.ChangeReportActiveAction(value);
this.props.ChangeMapCenterAction(value);
But at the same time, all components that subscribe to these values in Redux will twitch through componentWillUpdate, etc. 4 times the same.
Is there a way to update the state at once, as if 4 actions would fire at the same time?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question