-
|
Hi. I was exploring the library once more🙂. I found something that I couldn't think of an answer for. Since both the stack navigation and the child stack value can both be observed, in a component containing both, what is the utility of observing Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Here is some context. A while ago there was no |
Beta Was this translation helpful? Give feedback.
Child StackobservesStackNavigation. Usually you don't need to observe it in your code.Here is some context. A while ago there was no
StackNavigation, thechildStackfunction was returningStackRouterinterface, which contained both the observable stack and thenavigatefunction. This caused "Chicken and egg" problems, when you create a child component in thechildFactoryfunction, and you want to accessStackRouterfor navigation, which is not yet available. This was fixed by extracting the navigation part to the separateStackNavigation, which is created beforehand.