Skip to content

Commit 7b2e742

Browse files
fix doc (#3631)
1 parent 3585777 commit 7b2e742

File tree

1 file changed

+1
-2
lines changed
  • Sources/ComposableArchitecture/Documentation.docc/Articles

1 file changed

+1
-2
lines changed

Sources/ComposableArchitecture/Documentation.docc/Articles/Performance.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,8 +199,7 @@ Instead, we recommend invoking the child reducer directly:
199199

200200
```swift
201201
case .buttonTapped:
202-
return Child().reduce(into: &state.child, action: .refresh)
203-
.map(Action.child)
202+
return reduce(into: &state, action: .child(.refresh))
204203
```
205204

206205
### CPU intensive calculations

0 commit comments

Comments
 (0)