question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[bug] drag preview node weird when using `React.StrictMode`

See original GitHub issue

Hi,

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.

2022-04-05 17 01 31

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:1
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
minop1205commented, Apr 15, 2022

Thank you for your contribute!

Merged: https://github.com/minop1205/react-dnd-treeview/pull/108

1reaction
percy507commented, Apr 6, 2022

@minop1205 Here is a suggest. Enable the official eslint plugin of react hooks may helpful.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found