Thunk

A middleware that allows our action creators to return a function instead of an action object. The thunk can be used to delay the dispatch of an action, or to dispatch only if a certain condition is met. It looks at every action that passed through the system; and if it’s a function, it calls that function. 

Learn more

2

Development by Synergize.digital

Sign up for updates
straight to your inbox