Skip to content

Best way to have onCreate/onDestroy on a Node #285

Answered by KovalevAndrey
dimsuz asked this question in Q&A
Discussion options

You must be logged in to vote

@dimsuz you can use lifecycleScope in the Node. It's created when the Node is created and the scope is cancelled automatically onDestroy

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@dimsuz
Comment options

@KovalevAndrey
Comment options

@dimsuz
Comment options

@KovalevAndrey
Comment options

Answer selected by dimsuz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants