ThunkAction<State> typedef
ThunkAction<State> =
dynamic Function(Store<State> store)
A function that can be dispatched as an action to a Redux Store
and
intercepted by the the thunkMiddleware. It can be used to delay the
dispatch of an action, or to dispatch only if a certain condition is met.
The ThunkFunction receives a Store
, which it can use to get the latest
state if need be, or dispatch actions at the appropriate time.
Implementation
typedef ThunkAction<State> = dynamic Function(Store<State> store);