Skip to content

Commit

Permalink
Fix typo in the 1.7 migration guide (#2780)
Browse files Browse the repository at this point in the history
  • Loading branch information
yaslab authored Feb 8, 2024
1 parent e10f42e commit 4ae34ca
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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) }
Expand Down

0 comments on commit 4ae34ca

Please sign in to comment.