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 |
|
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? |
Uh oh!
There was an error while loading. Please reload this page.
If I have a
Nodewith thisViewimplementation:and then have a
ParentNodewhich contains this node above as one of its children and thisParentNodeimplementation also has aDestroyableplugin:I observe that logs have this:
which is a bit counterintuitive to me, as I perceive Node as something more "global" than its
Viewwhich 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.
All reactions