-
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 Stack
observesStackNavigation
. Usually you don't need to observe it in your code.Here is some context. A while ago there was no
StackNavigation
, thechildStack
function was returningStackRouter
interface, which contained both the observable stack and thenavigate
function. This caused "Chicken and egg" problems, when you create a child component in thechildFactory
function, and you want to accessStackRouter
for navigation, which is not yet available. This was fixed by extracting the navigation part to the separateStackNavigation
, which is created beforehand.