Best way to have onCreate/onDestroy on a Node #285
|
What is the best way to have an For example I have a And also this would have to be repeated in case I navigate to this node again later: new scope would have to be created and then destroyed on exit. I want to be able to do this from within the node itself, not from its parent. |
Answered by
KovalevAndrey
Nov 25, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@dimsuz you can use
lifecycleScopein the Node. It's created when theNodeis created and the scope is cancelled automaticallyonDestroy