Closed ValseLee closed 1 year ago
@ValseLee can you try this tip by specifying the generics of your Reduce reducer: Reduce<State, Action> { state, action in … }
as per this comment by @tgrapperon:
https://github.com/pointfreeco/swift-composable-architecture/discussions/1666#discussioncomment-4212335
public var body: some ReducerOf<Self> {
BindingReducer()
Reduce<State, Action> { state, action in
switch action {
...
}
}
}
It generally helped me in similar situations.
@nivanchikov So.... I didn't try your solution before, but it is perfectly working! Thank you for your kind explanation with #1666 !
@ValseLee This was fixed in a later Xcode, as well. If you can upgrade from 14.2, which was released last year, to 14.3.1, this should be fixed without the need of those generics!
@stephencelis I'm working on Xcode 15.0.1 with TCA 1.9.2 (destination target is iOS 16) but I have the exact same problem described above... Is there something to check in project's build settings?
(Reduce<State, Action> { state, action in … }
this works for me though)
Description
bug
Label.BindingReducer()
inbody
, compiler stops introducing a list of method completions inEffect<Action>
.Checklist
main
branch of this package.Expected behavior
Effect<Action>
.Reduce<State, Action>
.Actual behavior
Effect<Action>
.Reduce<State, Action>
.Steps to reproduce
When using
BindingReducer()
When stop using
BindingReducer()
Reduce<State, Action>
method completions are working as normal, ifbody
hasBidningReducer()
or not.The Composable Architecture version information
beta 1.0.0
Destination operating system
iOS 16.2
Xcode version information
14.2 (14C18)
Swift Compiler version information