Open dsempel opened 6 years ago
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! RE: https://github.com/joshwnj/react-visibility-sensor/pull/142
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
Any reasons why #142 has not been merged yet?
Issue #179 is right. This project is dead, no use waiting on something that wont be merged.
+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 https://github.com/joshwnj/react-visibility-sensor/pull/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.
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: