Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

dispatch two actions in redux

export const topLevelAction = () => dispatch => {
    return Promise.all([dispatch(action1()), dispatch(action2()), dispatch(action3())])
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #dispatch #actions #redux
ADD COMMENT
Topic
Name
1+9 =