Skip to content
Discussion options

You must be logged in to vote

Yeah, in that case, when you need a child feature to live in two different stacks, you cannot use NavigationLink(state:). This is true of vanilla SwiftUI too when using an array for the binding in NavigationStack.

Instead, you need to send an action from the child feature that the parent domain intercepts, and then the parent reducer will append to the path stack state.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@ivangodfather
Comment options

@mbrandonw
Comment options

Answer selected by ivangodfather
@ivangodfather
Comment options

@atsixian
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants