javascript - Is store.dispatch in Redux synchronous or asynchronous -


i realize basic question had no luck finding answer elsewhere.

is store.dispatch synchronous or asynchronous in redux ?

in case asynchronous there possibility add callback after action has been propagated possible react ?

afaik, dispatching action synchronous. in case if willing address asynchronous call, can use thunk-middleware in redux, dispatch provided callback function can invoke per convenience. more info, checkout answer on author itself: how dispatch redux action timeout?


Comments

Popular posts from this blog

javascript - Confirm a form & display message if form is valid with JQuery -

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

android - ConstraintLayout: Realign baseline constraint in case if dependent view visibility was set to GONE -