-
Notifications
You must be signed in to change notification settings - Fork 195
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 will be deprecated #141
Comments
Thanks for the heads up @dsempel ! Will have a think about this one |
@joshwnj Hope the above PR works for you. |
@joshwnj hey! Can you please help me, I updated my app with webpack 4 and babel 7 and react-visibility-sensor is stooped working. Do you have any idea why? Thanks! |
Hey gang, any chance this will hit master? Thanks! |
Any updates on #142 being merged? |
hey can #142 please be merged into master if its working |
Hello. Any changes this PR will be merged #142? The warning is still present once the component is used |
+1 on merging this please! |
+1 on merging this, please. |
+1 on merging, please! |
+1 on merging #142, please! |
+1 on merging, please! |
+1 on merging #142, please! |
Seems that this issue is stalling for ever Temporal solution for you guys: if (appSettings.isDevelopment) {
const backup = console.error;
console.error = function filterWarnings(msg) {
const supressedWarnings = ['Learn more about using refs'];
if (!supressedWarnings.some((entry) => msg.includes(entry))) {
backup.apply(console, arguments);
}
};
} |
+1 on merging, please! |
+1 on merging #142, please! |
Merge it!!! |
2023, requesting a merge |
Has anyone forked this project? It's not maintained anymore, so seems sensible to consider forking it to solve this particular problem. |
I replaced it with react-waypoint. It's almost a drop-in replacement |
Starting from React 16.6 it is deprecated in StrictMode and it will be deprecated from React in the future. Here is some more information about this.
The docs state the following:
However, reading through the source code I see that VisibilitySensor is not rendering any DOM nodes itself, so I'm not sure what would be the best way to attach the ref.
The warning in StrictMode:
The text was updated successfully, but these errors were encountered: