/// <summary> /// Extension on IStore to dispatch multiple actions via a thunk. /// Can be used like https://github.com/gaearon/redux-thunk without the need of middleware. /// </summary> public static Task DispatchAsync <TState>(this IStore <TState> store, AsyncActionsCreator <TState> actionsCreator) { return(actionsCreator(store.Dispatch, store.GetState)); }
public static Task DispatchAsync(this AsyncActionsCreator <State> actionCreator) { return(actionCreator(App.Store.Dispatch, App.Store.GetState)); }
public static void Dispatch <TState>(this IStore <TState> store, AsyncActionsCreator <TState> actionsCreator) { actionsCreator(store.Dispatch, store.GetState); }