Skip to content
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

Request to enhance the documentation #129

Open
dilipagheda opened this issue May 17, 2019 · 1 comment
Open

Request to enhance the documentation #129

dilipagheda opened this issue May 17, 2019 · 1 comment

Comments

@dilipagheda
Copy link

Hello,
I am trying to use redux in my project and going through documentation. One thing I found bit confusing is to understand the method signatures and what each parameter do and how it is used.
I was wondering if it can be added in the documentation.
Thanks
Dilip

@simonh1000
Copy link

And I'm struggling to work out how to write a reducer that updates a part of a (immutable) state. For example, this is not enough just to update the filters part of the state:

class AppState {
  final List<Resto> restos;
  final Filters filters;

  AppState({@required this.restos, @required this.filters});

  factory AppState.setFilters(filters) => AppState(filters: filters);

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