-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
findDOMNode is deprecated in StrictMode #1572
Comments
I am also running into this issue and I'm not sure why. It doesn't seem related to the documentation I've seen revolving passing
|
+1, having the same error in my console. Everything seems to work though. |
Is there any way to fix this ? |
+1. Having the same problem when use Table with AutoSizer |
Still having the problem when using WindowScroller in 9.22.3 |
related to issues/1353 |
Any updates on this issue? |
It work very well in not use "React.StrictMode" with "react": "^17.0.2". 2021-06-11.23.58.30.mov |
Hey guys, having the same problem using 9.22.3. Do we have any update of this issue? |
As for react-virtualized/source/Table/Table.js Line 342 in e360d95
Waiting contributors to fix this - #1353 |
Has there been any updates on this? I see both the console error and the issue mentioned above where elements don't render. See https://codesandbox.io/s/focused-hugle-mhegpz?file=/src/App.js for an example (there's 100 list items, but only 16 are getting rendered) |
I have the same issue. Any updates? |
I solved the error showed in console, though I had no issues with displaying the table even with it. I found the way to fix it by going through the source code, cellMeasurer uses eg. <CellMeasurer
cache={cache}
columnIndex={columnIndex}
key={dataKey}
parent={parent}
rowIndex={rowIndex}
>
{({ registerChild }) => (
<div ref={registerChild}>{content}</div>
))}
</CellMeasurer> |
The types for this are incompatilbe when you are using typescript however, which leads me to believe something is wrong? |
@PerfectionVR it's not wrong, the library is justing using really old react dependencies IMO. Did u solve the problem? |
I opened #1787 to fix this in WindowScroller and Table but I believe the author no longer maintains this lib or monitors PRs. |
I tried this - the warning is gone but the list render is super laggy now... |
You can try this, worked for me
|
The Table component from the react-virtualized package is throwing a warning:
Warning: findDOMNode is deprecated in StrictMode. findDOMNode was passed an instance of Grid which is inside StrictMode. Instead, add a ref directly to the element you want to reference.
I'm also not sure if this warning is preventing the content of my table from rendering or not as I haven't figured that out yet.
The text was updated successfully, but these errors were encountered: