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

Add onVisible event #37

Open
nharlow89 opened this issue Nov 29, 2018 · 3 comments
Open

Add onVisible event #37

nharlow89 opened this issue Nov 29, 2018 · 3 comments

Comments

@nharlow89
Copy link

Another use case I came across is triggering additional logic when the component becomes visible (outside of rendering logic). Would be super convenient to add an event as a prop such as onVisible or onVisibilityChange.

@ostenning
Copy link

+1 This would be handy indeed

@HemalR
Copy link

HemalR commented Jan 24, 2019

This would be useful.

Workaround (about to implement it) - Passing down a prop with the function to the component, which can be called onMount (or on render or whatever).

I'll see how I go and post an example here if it works.

@liao-frank
Copy link

#39

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

No branches or pull requests

5 participants