You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Do you mean after the action reaches the reducer? If so, you can definitely do this!
voidmyMiddleware(Store<AppState> store, dynamic action, NextDispatcher next) {
// call next immediately. This will forward the action to the reducernext(action);
print(store.state); // Prints the new app state after the reducer has run
}
I was wondering if it is possible to apply a middleware after an action.
The text was updated successfully, but these errors were encountered: