Closed arnauddorgans closed 9 months ago
@arnauddorgans WithPerceptionTracking
needs to be used wherever a "lazy"/@escaping
closure is, which LazyVStack
is. Try moving the WithPerceptionTracking
into the lazy view:
@MainActor
private var content: some View {
- WithPerceptionTracking {
LazyVStack(spacing: Spacing.huge) {
+ WithPerceptionTracking {
Because this isn't a bug in the library I'm going to convert to a discussion.
Description
I have a ScrollView containing a LazyVStack with four views, each with its scope. Randomly, one of the views is not updated. When I add a tap gesture on the not updated view to print the state, the state prints correctly updated, but the update is not visible in the view.
I have no runtime warning or nothing.
Checklist
main
branch of this package.Expected behavior
No response
Actual behavior
No response
Steps to reproduce
No response
The Composable Architecture version information
1.8.2
Destination operating system
iOS 17
Xcode version information
Xcode 15.2
Swift Compiler version information