Skip to content

Use componentDidUpdate instead of getDerivedStateFromProps #1

@theKashey

Description

@theKashey

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions