Skip to content

Conversation

golota60
Copy link
Contributor

@golota60 golota60 commented Mar 27, 2022

Fix for downsteam: react-bootstrap/react-bootstrap#6284 .

React 18 introduces a new StrictMode mount -> unmount -> mount pattern, which breaks useMounted in development and by extension useSafeState hook. I don't think there's a way to test this unfortunately(although if you've got any ideas let me know), but I've tested it locally and it fixes the issue that i've linked above.

@golota60
Copy link
Contributor Author

seems like codecovs broken

@kyletsang
Copy link
Collaborator

Nice fix! I think codecov's been broken for a while now.

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.

3 participants