Skip to content
Discussion options

You must be logged in to vote

Hi @grantjbutler, I believe I understand the problem you are describing, but I must apologize I did not read your entire post in depth. I believe I have a suggestion for you, but it may have been something you already considered.

My suggestion is to not use NavigationLink(state:). It's a great tool to have in a pinch, but also at the same time it's pretty problematic. Not only for the reasons you are seeing here, which is state created in the view can lose its dependencies, but also it strongly couples all the features in the stack together.

So I would suggest to just use a Button, send an action that the parent intercepts, and then construct the child state in the parent reducer. Then al…

Replies: 1 comment 4 replies

Comment options

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

@kamcma
Comment options

@mbrandonw
Comment options

@grantjbutler
Comment options

Answer selected by grantjbutler
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