Description
Before swift-dependencies 1.10.1 and greater I was able to have a TCA Reducer with a @FetchAll property, which would work as expected when used in a preview.
After updating to 1.10.1 or newer this doesn't work anymore.
I noticed this when I set up a new project and couldn't get the same behavior as in an older project, see this Discussion: pointfreeco/sqlite-data#395
Checklist
Expected behavior
FetchAll in a Reducer also works in Previews
Actual behavior
FetchAll in a Reducer does not work in Previews
Steps to reproduce
- Check out this example repository: https://github.com/OddMagnet/swift-dependencies-bug-example
- Build and verify that the FetchAll works in preview
- Change swift-dependencies version to 1.10.1
- Trust Macros again, build and try to view the preview
- Preview does not show the fetched data anymore
Dependencies version information
1.10.1
Destination operating system
iOS 26.2
Xcode version information
26.2
Swift Compiler version information
swift-driver version: 1.127.15 Apple Swift version 6.2.4 (swiftlang-6.2.4.1.4 clang-1700.6.4.2)
Target: arm64-apple-macosx26.0
Description
Before swift-dependencies 1.10.1 and greater I was able to have a TCA Reducer with a
@FetchAllproperty, which would work as expected when used in a preview.After updating to 1.10.1 or newer this doesn't work anymore.
I noticed this when I set up a new project and couldn't get the same behavior as in an older project, see this Discussion: pointfreeco/sqlite-data#395
Checklist
mainbranch of this package.Expected behavior
FetchAll in a Reducer also works in Previews
Actual behavior
FetchAll in a Reducer does not work in Previews
Steps to reproduce
Dependencies version information
1.10.1
Destination operating system
iOS 26.2
Xcode version information
26.2
Swift Compiler version information