-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Using onEnter/onExit from Component #2081
Comments
I wanted to do something similar. Calling |
@luco Have you tried to add onEnter/onExit on containers or on child? It works only for child. I've just added possibility to define them on component level (as static functions), please check. |
Shouldn't this be working?
|
Depends from what is |
Yep, you're right! I may be doing something wrong. Thank you. |
I still don't really understand how onEnter works. Is it possible to call a function from the component from there? Is there a tutorial / doc on how to use it? |
Demo is in progress... You may define it as static component function |
Is there such event listener for Drawer? I need to listen for Drawer opens/closes. I can't find this in docs. |
EDIT: This event is available for Drawer only EDIT2: Check out the examples folder - I believe there are something there showing it. |
Is there a way from using
onEnter
andonExit
from component itself?I mean, I want to call a function from my component every time I enter on it.
I tried using on Scene component, but wasn't lucky.
The text was updated successfully, but these errors were encountered: