Skip to content

Conversation

dralletje
Copy link
Contributor

I understand that you are spending your time now on React Router v6, but it would be very nice to have this in still.
This one line change made my app go from "Reach Router not doing anything at all" to working perfectly on React 18.

React 18 can render componentWillUnmount and then componentDidMount the same instance that was just "willUnmount"-ed.
This makes sure we reset this.unmounted = false when re-didMount-ing.

React 18 can render componentWillUnmount and then componentDidMount the same instance that was just "willUnmount"-ed.
This makes sure we reset `this.unmounted = false` when re-didMount-ing.
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

Successfully merging this pull request may close these issues.

1 participant