react-notifications
react-notifications copied to clipboard
Getting this error when notification is received,findDOMNode is deprecated in StrictMode.
Warning: findDOMNode is deprecated in StrictMode. findDOMNode was passed an instance of CSSTransitionGroupChild which is inside StrictMode. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://fb.me/react-strict-mode-find-node
Any solutions ?
It might be fixed by PR #20 since it changes how the CSS Transition Group is used. I'll let you know when that is merged, and you can see if that fixes your issue.
Thanks. I'ill be waiting for the merge.
Just published 1.7.0 which includes updates to react-transition-group
. Check to see if that resolves your issue.
1.7.2 version, this warning is still logging while notification is appearing
@tjrexer https://github.com/reactjs/react-transition-group/blob/master/CHANGELOG.md#features
I don't see nodeRef
prop being created and passed through CSSTransition
and Notification
, maybe that's why we are still getting this warning?
same. No solution?
This was fixed I think.
@saudkhan1391 I'm still getting this error in console
Don't use in strictMode. Try using it inside <Router or <appoloProvide .
@saudkhan1391 still same, I triend inside Apollo and also inside Router
no answer to this?
Also tried inside Router
and i still get the warning
The issue still persists in the latest build.
I have not been able to find anything causing the warning. Only warnings I'm seeing is regarding componentWillX & am working on that fix.