Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warning: findDOMNode is deprecated in StrictMode. findDOMNode was passed an instance of Transition which is inside StrictMode. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: #449

Closed
bit-crafter opened this issue Mar 31, 2020 · 4 comments

Comments

@bit-crafter
Copy link

bit-crafter commented Mar 31, 2020

The latest release of the React has added StrictMode functionality.

StrictMode is a tool for highlighting potential problems in an application. Like Fragment, StrictMode does not render any visible UI. It activates additional checks and warnings for its descendants.

So now it throws an error while using a toast function

image

@fkhadra
Copy link
Owner

fkhadra commented Mar 31, 2020

the error is not coming from react-toastify but from react-transition-group #388

@fkhadra
Copy link
Owner

fkhadra commented May 5, 2020

Hey @tumdav,

The new RC of react-toastify support strict mode. You can install it as follow:
yarn add react-toastify@next or npm i react-toastify@next

I expect to launch the stable release next week if there is no bug.

@fkhadra fkhadra closed this as completed May 5, 2020
@bit-crafter
Copy link
Author

@fkhadra seems it does not work for me, I am getting the same error in the console

Release version : "react-toastify": "^6.0.0-rc.2"

image

@dishcandanty
Copy link

I'm personally no longer seeing this with react-toastify": "^6.0.0-rc.3",

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants