Without redux-thunk, your action creators can still take dispatch as an argument and seemingly do whatever a thunk would:
https://stackoverflow.com/a/33892505/378622
So what's the motivation for redux-thunk, exactly?
Without redux-thunk, your action creators can still take dispatch as an argument and seemingly do whatever a thunk would:
https://stackoverflow.com/a/33892505/378622
So what's the motivation for redux-thunk, exactly?
Dan Abramov's answer here How to dispatch a Redux action with a timeout? explains it in detail.
This summary is probably not complete, but my take from it is:
new Promise()
yourselfgetState
in actions to read from state