Last active
October 17, 2020 13:07
-
-
Save panthe/97f75974eae464ca92ecd1e7e024d7ba to your computer and use it in GitHub Desktop.
Redux Store
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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