Skip to content
\n

but for this line

\n

path: $store.scope(state: \\.path, action: \\.path)

\n

I get the following error

\n
Cannot convert value of type 'Binding<Store<StackState<Root.Path.State>, ChildAction>?>' to expected argument type 'Binding<Store<StackState<State>, StackAction<State, Action>>>'\n
\n

I am not able to determine why this error is happening. I believe I am following the SyncUps to a T but this error won't go away.

","upvoteCount":1,"answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"

Hi @captadoh, Swift is just pointing to the wrong line. Your problem is here:

\n
case let .analyze(meeting, syncUp):
\n

That is not the proper way to destructure the .analyze case.

","upvoteCount":1,"url":"https://github.com/pointfreeco/swift-composable-architecture/discussions/3699#discussioncomment-13380719"}}}

NavigationStack error #3699

Answered by mbrandonw
captadoh asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @captadoh, Swift is just pointing to the wrong line. Your problem is here:

case let .analyze(meeting, syncUp):

That is not the proper way to destructure the .analyze case.

Replies: 1 comment

Comment options

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