Reducer<Self>
make build error when Default Actor Isolation is MainActor
in Xcode26-beta
#3714
Replies: 3 comments
-
Hi @Ryota-Kurokawa, the default main actor isolation features of Swift 6.2 are really not ready for primetime. There are many bugs we are waiting to be fixed before we can see what changes need to be made to support it. And this really affects all 3rd party libraries, not just TCA. In the meantime you should be able to switch to Swift 5 mode if you want to continue exploring default main actor isolation with TCA. Also for now I think a discussion is best for this rather than an issue, and if anyone explores this more we'd love to hear about what you find. |
Beta Was this translation helpful? Give feedback.
-
Thanks for answer @mbrandonw ! At the moment, I think it would be fine to use Reducer<State, Action>. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
Hi, I find build error using Xcode26-beta that is not occurred in Xcode16.x
if you set
Default Actor Isolation, MainActor
The point of error is here
error message:
if you code this, the error does not occurs.
Reducer<State, Action>
Checklist
main
branch of this package.Expected behavior
Does not occurred build error using
ReducerOf<Self>
Actual behavior
if you use
ReducerOf<Self>
, build error is occurred, whenDefault Actor Isolation
isMainActor
Reproducing project
MainActor
ReducerOf<Self>
The Composable Architecture version information
Latest
Destination operating system
iOS 18.4, iOS 26.0
Xcode version information
Xcode 26.0-beta
Swift Compiler version information
Beta Was this translation helpful? Give feedback.
All reactions