NavigationLink binding lead to view onAppear #983
Unanswered
AaronSwift-SF
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Hi @15620946376, I'm going to convert this to a discussion since it's not an issue with the library. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a strange problem, I need use NavigationLink push other view. If I use this method when pushed can lead to current view onAppear.
NavigationLink(
isActive: viewStore.binding(get: .isNavigationActive, send: JenkinsJobDetailAction.setNavigation(isActive:)),
destination: {
Text("...")
},
label: {
Image(systemName: "hammer")
.font(Font.system(size: 15))
.foregroundColor(.primary)
}
)
If I use another method, not lead to current view trigger onAppear.
NavigationLink {
JenkinsJobBuildView(store: store.scope(
state: .buildJob,
action: JenkinsJobDetailAction.buildJob
))
} label: {
Image(systemName: "hammer")
.font(Font.system(size: 15))
.foregroundColor(.primary)
}
Please help me analyze it. Thanks!
Beta Was this translation helpful? Give feedback.
All reactions