Skip to content

getDerivedStateFromError for Control Flow #15988

@gaearon

Description

@gaearon

Spinoff from #15797 (comment).

We might want to offer a way to "bubble" control flow up the tree a la Algebraic Effects. throw Redirect() is a canonical example. However, we want them to bypass the normal error boundaries. So it probably needs to be a first-class API.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions