Replies: 2 comments 9 replies
-
Hi @dimsuz Note, that sometimes you don't want to keep in memory off-screen More info about lifecycle behaviour can be found here |
Beta Was this translation helpful? Give feedback.
-
I have another kinda parallel question about I'm building a tree of several navigation flows which looks like this:
Each I have these steps:
class AppFlow(private val backStack = ...) : ParentNode {
fun onEvent() {
backStack.newRoot(AppFlowNavTarget.MainFlow)
}
}
But it doesn't call I can see that Is this an expected behavior? |
Beta Was this translation helpful? Give feedback.
-
If I have a
Node
with thisView
implementation:and then have a
ParentNode
which contains this node above as one of its children and thisParentNode
implementation also has aDestroyable
plugin:I observe that logs have this:
which is a bit counterintuitive to me, as I perceive Node as something more "global" than its
View
which gets "attached/detached" to/from the node.Is this an expected behavior?
I suspect that in future this can potentially cause bugs, e.g. someone will store some resource in Node and will reference it in View after node gets destroyed.
Beta Was this translation helpful? Give feedback.
All reactions