ThunkActionWithExtraArgument<S, A> typedef

ThunkActionWithExtraArgument<S, A> = dynamic Function(Store<S> store, A extraArgument)

A function that can be dispatched as an action to a Redux Store and intercepted by the the ExtraArgumentThunkMiddleware. It can be used to delay the dispatch of an action, or to dispatch only if a certain condition is met.

The Store argument is used to get the latest state if need be, or dispatch actions at the appropriate time.

The extraArgument argument is injected via ExtraArgumentThunkMiddleware.

Implementation

typedef ThunkActionWithExtraArgument<S, A> = dynamic Function(
  Store<S> store,
  A extraArgument,
);