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

Use componentDidUpdate instead of getDerivedStateFromProps #1

Open
theKashey opened this issue Apr 15, 2018 · 0 comments
Open

Use componentDidUpdate instead of getDerivedStateFromProps #1

theKashey opened this issue Apr 15, 2018 · 0 comments

Comments

@theKashey
Copy link
Owner

Use componentDidUpdate instead of getDerivedStateFromProps to run side-effects?

Currently, one could use selector/flow-step with side-effect, and have to defer any state change he could execute inside, leading to 2 problems.

  1. memoize-state does not properly work with async stuff, concreting usage just after a function call.
  2. Possible double rendering.
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

1 participant