fix: Give internal store an id. (#2908)

This commit is contained in:
Luke Redpath
2024-03-11 18:53:13 +00:00
committed by GitHub
parent a0acf426f7
commit 8907f4f8c3

View File

@@ -215,7 +215,7 @@ public struct PresentationStore<
) -> Content
) where State == DestinationState, Action == DestinationAction {
let store = store.scope(
id: nil,
id: store.id(state: \.self, action: \.self),
state: ToState(\.self),
action: { $0 },
isInvalid: { $0.wrappedValue == nil }