Tutorial won't compile: Meet The Composable Architecture - Testing presentation, Testing the add contact flow, Step 12 has an error #3530
takenori-kabeya
started this conversation in
General
Replies: 2 comments
-
I don't know if the following line is necessary or not, but if I remove this line I am able to compile. CasePathable.swift
|
Beta Was this translation helpful? Give feedback.
0 replies
-
I found this issue. #3158 await store.send(\.destination.addContact.setName, "Blob Jr.") {
$0.destination?.modify(\.addContact) {
$0.contact.name = "Blob Jr."
}
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have encountered an error during the tutorial.
I think the tip in the left side note corresponds exactly to this problem, but I don't know how to solve it.
I wrote Desitination enum as follows:
When expanding this @Reducer macro, it seems that State marked with @CasePathable and @dynamicMemberLookup is indeed generated.
Once I wrote it like this, it compiled up to Step 18 and all the tests passed.
Is there anything I should check?
swift-composable-architecture version: 1.17.0
swift-case-paths version: 1.5.6
Xcode version: 16.2
iOS version: 18.1
Beta Was this translation helpful? Give feedback.
All reactions