Open sergio-toro opened 5 years ago
https://github.com/roderickhsiao/react-in-viewport already has a hook-based API. Maybe just add a link to it in docs?
Anyone know where this ended up? I was looking at this PR and the other one linking to and it seems like they're both sitting on the back burner. Would love to get rid of those deprecation warnings... :)
Hi @josectello it's only missing the approval from @joshwnj and a couple missing tests. Right now I don't have time to do the tests as I've started managing a project for the first time and it's been challenging.
Would be really helpful if you have time to review the tests, I can ask Josh to review after and push for a new release.
This PR:
findDOMNode
deprecation warning https://github.com/joshwnj/react-visibility-sensor/pull/160useVisibilitySensor
hook for more powerful integrations.16.8.x
.Missing:
act
calls if gets approved.@joshwnj What do you think? It will be more powerful API than adding a custom way of passing ref up from VisibilitySensor.