Skip to content

combineReducers example usage with store #83

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
dabit3 opened this issue Sep 28, 2018 · 2 comments
Closed

combineReducers example usage with store #83

dabit3 opened this issue Sep 28, 2018 · 2 comments

Comments

@dabit3
Copy link

dabit3 commented Sep 28, 2018

Is there an example of how to use combineReducers to pass a set of reducers to the store similar to how it is done in React's combineReducers?

I see how to use combineReducers as far as creation, but not sure how to use it:

final store = Store<ListState>(combinedreducers, initialState: combinedAppState());

@brianegan
Copy link
Owner

brianegan commented Sep 28, 2018

Hey there -- I've put up some docs on the Original Redux repo for this kinda info: https://pub.dartlang.org/packages/redux#docs, specifically this article: https://github.com/johnpryan/redux.dart/blob/master/doc/combine_reducers.md

In addition, you can see flutter_redux used in a slightly more complex example app, including using combineReducers here: https://github.com/brianegan/flutter_architecture_samples/blob/master/example/redux/lib/reducers/todos_reducer.dart#L10

Hope that helps! If not, please let me know how I can provide more information

@dabit3
Copy link
Author

dabit3 commented Sep 28, 2018

Thanks for the resources @brianegan I appreciate your time & help. I'll check them out now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants