Skip to content

Instantly share code, notes, and snippets.

@panthe
Last active October 17, 2020 13:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save panthe/97f75974eae464ca92ecd1e7e024d7ba to your computer and use it in GitHub Desktop.
Save panthe/97f75974eae464ca92ecd1e7e024d7ba to your computer and use it in GitHub Desktop.
Redux Store
Store<AppState> createStore() {
return Store(
appReducer,
initialState: AppState.initial(),
middleware: []
..add(createErrorMiddleware())
..add(createMessageMiddleware())
..add(createUserMiddleware())
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment