Replies: 1 comment 1 reply
-
Hi @uniqby, this is just how Swift/SwiftUI behaves, for better or worse. The Since this is not an issue with the library I am going to convert it to a discussion. Feel to free to continue the conversation over there. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
If you add the
.refreshable
modifier to the child property in@ViewBuilder
, attempting to refresh the list triggers a warning that the call was made on a non-main thread:Example:
However, if you place the list directly in the body, everything works as expected without warnings:
Example:
Checklist
main
branch of this package.Expected behavior
No non-main thread warning
Actual behavior
Store.send" was called on a non-main thread with: Test.Action.refresh …
The "Store" class is not thread-safe, and so all interactions with an instance of "Store" (including all of its scopes and derived view stores) must be done on the main thread.
Steps to reproduce
No response
The Composable Architecture version information
1.10.3
Destination operating system
iOS 17.4
Xcode version information
Version 15.3 (15E204a)
Swift Compiler version information
Beta Was this translation helpful? Give feedback.
All reactions