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

StrictMode check about #96

Open
linonetwo opened this issue Aug 15, 2021 · 3 comments
Open

StrictMode check about #96

linonetwo opened this issue Aug 15, 2021 · 3 comments

Comments

@linonetwo
Copy link

I got this when using react-collapse-pane in React.StrictMode

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: https://reactjs.org/link/strict-mode-find-node
div
O@http://localhost:3000/static/js/vendors~main.chunk.js:404904:6
Transition@http://localhost:3000/static/js/vendors~main.chunk.js:398277:30
Fade@http://localhost:3000/static/js/vendors~main.chunk.js:334257:18
div
Resizer@http://localhost:3000/static/js/vendors~main.chunk.js:323839:20
div
O@http://localhost:3000/static/js/vendors~main.chunk.js:404904:6
SplitPane@http://localhost:3000/static/js/vendors~main.chunk.js:324631:41
@channeladam
Copy link

Same...

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: https://reactjs.org/link/strict-mode-find-node
div
O@webpack-internal:///./node_modules/styled-components/dist/styled-components.browser.esm.js:31:19797
Transition@webpack-internal:///./node_modules/react-transition-group/esm/Transition.js:131:30
Fade@webpack-internal:///./node_modules/@material-ui/core/esm/Fade/Fade.js:42:18
div
Resizer@webpack-internal:///./node_modules/react-collapse-pane/dist/react-collapse-pane.esm.js:362:20
div
O@webpack-internal:///./node_modules/styled-components/dist/styled-components.browser.esm.js:31:19797
SplitPane@webpack-internal:///./node_modules/react-collapse-pane/dist/react-collapse-pane.esm.js:1147:41

@insanicly
Copy link

Any or workaround progress on this?

@theogravity
Copy link

allotment is a good alternative that works with React 17.

https://github.com/johnwalley/allotment

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

No branches or pull requests

4 participants