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

Functional updater form for store.set() #103

Open
jackwlee01 opened this issue Feb 7, 2020 · 0 comments
Open

Functional updater form for store.set() #103

jackwlee01 opened this issue Feb 7, 2020 · 0 comments

Comments

@jackwlee01
Copy link

jackwlee01 commented Feb 7, 2020

store.set() should support the functional form, as per https://reactjs.org/docs/hooks-reference.html#functional-updates, in order update the state based on an instruction, instead of the current value (which may be out of date in an async scenario).

@jackwlee01 jackwlee01 changed the title Functional updater form for setState Functional updater form for store.set() Feb 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants