Skip to content

Use of StackNavigation.subscribe #495

Answered by arkivanov
YektaDev asked this question in Q&A
Discussion options

You must be logged in to vote

Child Stack observes StackNavigation. Usually you don't need to observe it in your code.

Here is some context. A while ago there was no StackNavigation, the childStack function was returning StackRouter interface, which contained both the observable stack and the navigate function. This caused "Chicken and egg" problems, when you create a child component in the childFactory function, and you want to access StackRouter for navigation, which is not yet available. This was fixed by extracting the navigation part to the separate StackNavigation, which is created beforehand.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by YektaDev
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