[bug] drag preview node weird when using `React.StrictMode`
See original GitHub issueHi,
Thanks for your work. It’s really awesome.
I search lots of react tree components and finally decide use yours.👍
I am use the newest version of react: v18.0.0.
During testing, I find a weird thing in drag preview node.
I am use the fork of your official case locally.
And I am use
React.StrictMode
as root component. And…I find if remove the strict mode, below behavior will not happened. Hint: don’t test in CodeSandbox, because it always in production, so the strict mode will not work.
Issue Analytics
- State:
- Created a year ago
- Reactions:1
- Comments:9 (9 by maintainers)
Top Results From Across the Web
React 18 (RC 0) StrictMode rendering breaks ability to find ...
Actual behavior. Library fails to find draggable nodes with messaged logged (in development mode): Unable to find draggable with id: card-2.
Read more >Strict Mode - React
When strict mode is enabled, React compiles a list of all class components using the unsafe lifecycles, and logs a warning message with...
Read more >Using strict mode in React 18: A guide to its new behaviors
In this article, you'll learn about Strict Mode, its various features, and how the v18 release has improved its API.
Read more >My React Component is rendering twice because of Strict Mode
Had an event listener invoked twice and was wondering why. Seems the strict mode was the cause.
Read more >Updates - React PDF Viewer
Bug fixes. Fix more issues that only happen with React 18's Strict mode: The `initialPage` option doesn't work; The pages are flickering when...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Thank you for your contribute!
Merged: https://github.com/minop1205/react-dnd-treeview/pull/108
@minop1205 Here is a suggest. Enable the official eslint plugin of react hooks may helpful.