-
Notifications
You must be signed in to change notification settings - Fork 52
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
Labels
Comments
+1 This would be handy indeed |
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. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
oronVisibilityChange
.The text was updated successfully, but these errors were encountered: