Accepted answer

afaik, dispatching action is synchronous. in case if you are willing to address the asynchronous call, you can use the thunk-middleware in redux, where dispatch is provided as a callback function which you can invoke as per your convenience. for more info, checkout this answer on so by author itself: how to dispatch a redux action with a timeout?


nobody knows better than the code itself. =) as you can see dispatch is absolutely synchronous. the only warning here is that store enhancers can (and do) substitute dispatch method. for example, take a look at applymiddleware enhancer, it lets you jack middlewares in by replacing default dispatch method with its own implementation. though i never saw any redux enhancer which would actually remove synchronous nature of dispatch.

Related Query

More Query from same tag