Skip to content

[v4] onEnter and onChange hooks #3854

@olegafx

Description

@olegafx

How could we replace onEnter and onChange route hooks?

I found only 1 solution: additional <Match/> with a custom component.
This component could use something like componentWillReceiveProps to emulate onChange.
But what about onEnter? We have no lifecycle hooks that receive props on initial render.

Nice work, btw.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions