NavigationStackStore missunderstanding #2131
-
I have a top level
In a second tab I have in the middle called Here is a sample app showcasing the problem: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Hi @ivangodfather, I can't say I know exactly why the app is freezing up, but I would say in general you should not mix the Similar things happen when trying to mix Also, I am a little confused with the comment in your code: // I image the bug is here, when I click the item feature (embeeded inside navigation) it goes the with navigation switch The NavigationLink(state: StackNavFeature.Path.State.navigation(.init())) That is why it is destructuring on the |
Beta Was this translation helpful? Give feedback.
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 inNavigationStack
.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.