Closed smolak closed 6 years ago
Are you using functional components by any chance? This version relies on using a component's ref, and purely functional components do not support refs.
If not, sounds like a legit bug
Closing due to lack of response. Happy to reopen if the problem isn't because of function components.
Hi
When I try to do this:
It will fail with
Sticky.js:61 Uncaught TypeError: Cannot read property 'getBoundingClientRect' of null
.But when I do this:
It works. It works also when you render a component without props (can have children though):
It should work forall cases, in my opinion.