Skip to content
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

Pass DOMRect to child render function as a second argument #41

Open
liao-frank opened this issue Feb 20, 2019 · 0 comments
Open

Pass DOMRect to child render function as a second argument #41

liao-frank opened this issue Feb 20, 2019 · 0 comments

Comments

@liao-frank
Copy link

The use case is the need to know which side of the screen the component is going off of. If TrackVisibility is already keeping track of a ref and rect, can one or both of these be passed back to the child render function along with isVisible?

These are pretty versatile bits of information, I'm sure there are other use cases too.

Additionally, the data might need to be passed to any relevant callbacks like onVisible (#39).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant