Dispatch Function
↔ fn to Dispatch Action to Reducer
aka Dispatch, Dispatch-Fn
dispatch({
type: "INCREMENT",
payload: 1
})
References
redux-thunk
↔redux
sub-library to Thunk Redux Middleware forredux
for logic to interact with Dispatch &getState()
- to delay dispatch for action until condition met . extends redux actions to return functions that can be executed by thunk middleware, allows side-effects such as async api calls.redux
↔ (Design Pattern) to colocate state in global external central store, to control data flow with predictable scalable pattern of Dispatch > Reducer > Store