From 4ae34cad32cb42232226bfb553ec53aa82eaa955 Mon Sep 17 00:00:00 2001 From: Yasuhiro Hatta Date: Fri, 9 Feb 2024 07:26:29 +0900 Subject: [PATCH] Fix typo in the 1.7 migration guide (#2780) --- .../Articles/MigrationGuides/MigratingTo1.7.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/ComposableArchitecture/Documentation.docc/Articles/MigrationGuides/MigratingTo1.7.md b/Sources/ComposableArchitecture/Documentation.docc/Articles/MigrationGuides/MigratingTo1.7.md index da83e5711f0a..9596b7bcfaab 100644 --- a/Sources/ComposableArchitecture/Documentation.docc/Articles/MigrationGuides/MigratingTo1.7.md +++ b/Sources/ComposableArchitecture/Documentation.docc/Articles/MigrationGuides/MigratingTo1.7.md @@ -97,7 +97,7 @@ code in the following way: - } var body: some View { -- WithViewStore(store, observe: ViewState.init) { store in +- WithViewStore(store, observe: ViewState.init) { viewStore in + WithPerceptionTracking { Form { - Text(viewStore.count.description) @@ -125,7 +125,7 @@ apply all of the updates above, but with one additional simplification to the `b ```diff var body: some View { -- WithViewStore(store, observe: ViewState.init) { store in +- WithViewStore(store, observe: ViewState.init) { viewStore in Form { - Text(viewStore.count.description) - Button("+") { viewStore.send(.incrementButtonTapped) }