diff --git a/Sources/ComposableArchitecture/SwiftUI/ForEachStore.swift b/Sources/ComposableArchitecture/SwiftUI/ForEachStore.swift index 9426c8d09dc3..88da5132e27f 100644 --- a/Sources/ComposableArchitecture/SwiftUI/ForEachStore.swift +++ b/Sources/ComposableArchitecture/SwiftUI/ForEachStore.swift @@ -117,7 +117,7 @@ public struct ForEachStore< content( store.scope( state: { $0[id: id]! }, - id: store.id(state: \.[id: id]!, action: \.[id: id]), + id: store.id(state: \.[id:id]!, action: \.[id:id]), action: { .element(id: id, action: $0) }, isInvalid: { !$0.ids.contains(id) }, removeDuplicates: nil @@ -173,7 +173,7 @@ public struct ForEachStore< content( store.scope( state: { $0[id: id]! }, - id: store.id(state: \.[id: id]!, action: \.[id: id]), + id: store.id(state: \.[id:id]!, action: \.[id:id]), action: { (id, $0) }, isInvalid: { !$0.ids.contains(id) }, removeDuplicates: nil diff --git a/Sources/ComposableArchitecture/SwiftUI/NavigationStackStore.swift b/Sources/ComposableArchitecture/SwiftUI/NavigationStackStore.swift index 896e089b5e44..c0bdc7acb754 100644 --- a/Sources/ComposableArchitecture/SwiftUI/NavigationStackStore.swift +++ b/Sources/ComposableArchitecture/SwiftUI/NavigationStackStore.swift @@ -33,7 +33,7 @@ public struct NavigationStackStore store .scope( state: { $0[id: component.id]! }, - id: store.id(state: \.[id: component.id]!, action: \.[id: component.id]), + id: store.id(state: \.[id:component.id]!, action: \.[id:component.id]), action: { .element(id: component.id, action: $0) }, isInvalid: { !$0.ids.contains(component.id) }, removeDuplicates: nil @@ -69,7 +69,7 @@ public struct NavigationStackStore store .scope( state: { $0[id: component.id]! }, - id: store.id(state: \.[id: component.id]!, action: \.[id: component.id]), + id: store.id(state: \.[id:component.id]!, action: \.[id:component.id]), action: { .element(id: component.id, action: $0) }, isInvalid: { !$0.ids.contains(component.id) }, removeDuplicates: nil