Last active
October 17, 2020 13:08
-
-
Save panthe/806874a6a28659132c83fc4ee2737eb0 to your computer and use it in GitHub Desktop.
Redux Application Reducer
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
import 'package:flutter_web_with_redux/redux/app/app_state.dart'; | |
import 'package:flutter_web_with_redux/redux/error/error_reducer.dart'; | |
import 'package:flutter_web_with_redux/redux/message/message_reducer.dart'; | |
import 'package:flutter_web_with_redux/redux/user/user_reducer.dart'; | |
AppState appReducer(state, action) { | |
return new AppState( | |
errorState: errorReducer(state.errorState,action), | |
messageState: messageReducer(state.messageState,action), | |
userState: userReducer(state.userState,action) | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment