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.

Deprecated `findDOMNode` usage

See original GitHub issue

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
OliverJAshcommented, Jul 30, 2020

To clarify, is findDOMUsage now removed?

0reactions
Rendezcommented, Jul 30, 2020

I’ve decided to not move forward with re-implementing this without hooks for now. Use the hooks version by wrapping your components using a HOC for example (or render props), so that you can pass the ref down to your observing element, like this:

function withIntersectionObserver(Component) {
  return ({onChange, ...props}) => {
    const [ref] = useIntersectionObserver(onChange);
    return <Component {...props} intersectionObserverRef={ref} />
  }
}
Read more comments on GitHub >

github_iconTop Results From Across the Web

Warning: findDOMNode is deprecated in StrictMode ...
Warning: findDOMNode is deprecated in StrictMode. findDOMNode was passed an instance of Transition which is inside StrictMode · 6 · 2 · 1...
Read more >
Getting rid of findDOMNode in your React application - Medium
As we can see, findDOMNode is deprecated in StrictMode. Its usage is discouraged and, possibly, it will be deleted in a future version....
Read more >
deprecated findDOMNode usage · Issue #708 · reactjs/react ...
The error occurred when the transition entered into the DOM. We have got this following error in the console of the web browser:...
Read more >
React warning: findDOMNode is deprecated in StrictMode ...
React used to support findDOMNode to search the tree for a DOM node given a class instance. Normally you don't need this because...
Read more >
How do I fix warning findDOMNode is deprecated ... - YouTube
How to fix finddomnode warning with two different method :Warning: findDOMNode is deprecated in StrictMode. findDOMNode was passed an ...
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