Closed itaditya closed 4 years ago
Saw PR https://github.com/GoogleChromeLabs/react-adaptive-hooks/pull/1 I guess that would be even better.
Thanks for the suggestion, @itaditya. We've just landed https://github.com/GoogleChromeLabs/react-adaptive-hooks/pull/1 and hopefully that's a sufficient solution.
useRef is much more suitable than useState when you just want some value to persist across renders. I can make a PR for that change.