Tabview does not update when scoping in a foreach loop #2850
-
DescriptionWhen running this code the updateIndex does not update. foreach_bug.movChecklist
Expected behaviorI expect the index to update. Actual behaviorIt does not. Steps to reproduceRun the project I have attached. The Composable Architecture version information'1.8.2', 'main' Destination operating systemiOS 17.2 Xcode version information15.2 Swift Compiler version informationswift-driver version: 1.87.3 Apple Swift version 5.9.2 (swiftlang-5.9.2.2.56 clang-1500.1.0.2.5)
Target: arm64-apple-macosx14.0 |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
@Scocher seems like adding Link to the original solution. |
Beta Was this translation helpful? Give feedback.
-
@domagojstankovic Notes the issue, which is that the identity should be based on the data in the store and not the identity of the store itself. I'm going to convert this to a discussion since it's not technically a bug with the library. |
Beta Was this translation helpful? Give feedback.
@Scocher seems like adding
id: \.state.id
toForEach
does the job, at least it worked for me.Link to the original solution.