Comments (1)
Hi @uniqby, this is just how Swift/SwiftUI behaves, for better or worse. The body
of views is marked as @MainActor(unsafe)
, and so everything inside inherits @MainActor
, including refreshable
. But as soon as you move some of the view out to another computed property, it loses the @MainActor
. You can either mark the list
property as @MainActor
, or you can use refreshable { @MainActor in … }
.
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.
from swift-composable-architecture.
Related Issues (20)
- Display this error message to console When using TCA with SwiftUI. HOT 1
- @Shared State in Tests for consecutive actions is modified prematurely HOT 1
- Crash when using @Shared appStorage during certain conditions HOT 3
- iOS 18 build error HOT 6
- Unable to build with swift-sytax below v600 HOT 1
- StandupsListTest crashes HOT 1
- Automatic dismissal of `ConfirmationDialogState` HOT 3
- SwiftUI preview crash HOT 3
- Missing required module 'UIKitNavigationShim' HOT 3
- Deadlock on main thread when loading dependencies and @Shared values HOT 1
- Swift Testing aren't failing HOT 1
- Memory Leaks HOT 1
- Can't use if let with ForEach HOT 3
- ViewController's observe is triggered when state is set to nil HOT 7
- Presenting multiple children from a feature HOT 1
- Effect is not correctly cancelled when calling a child action from the parent reducer HOT 1
- Xcode16 and testing `store.receive` with a `case ...(Result<Void, Error>)` action HOT 1
- Date race risk causing at new xcode. HOT 1
- ViewController is presented for Optional Destination Reducer case payload HOT 1
- Crash on background queue `.publisher` effect subscription HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from swift-composable-architecture.