We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
state.count
.task
GettingStartted.md
1 parent 873d1da commit 3c533b4Copy full SHA for 3c533b4
Sources/ComposableArchitecture/Documentation.docc/Articles/GettingStarted.md
@@ -116,9 +116,9 @@ let appReducer = Reducer<
116
return .none
117
118
case .numberFactButtonTapped:
119
- return .task {
+ return .task { [count = state.count] in
120
await .numberFactResponse(
121
- TaskResult { try await environment.numberFact(state.count) }
+ TaskResult { try await environment.numberFact(count) }
122
)
123
}
124
0 commit comments