Skip to content

Commit 047742f

Browse files
stephencelisp4checo
authored andcommitted
Update case studies/docs for Scope and reducer builders (#1623)
We still had some old copy around `pullback` and `combine` that I'm sure are confusing. (cherry picked from commit b21a7d5aadd7c6ee4cc5bcf6771fcbf32d6b1bcc)
1 parent f99efcd commit 047742f

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

Examples/CaseStudies/SwiftUICaseStudies/00-RootView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ struct RootView: View {
2020
)
2121

2222
NavigationLink(
23-
"Pullback and combine",
23+
"Combining reducers",
2424
destination: TwoCountersView(
2525
store: self.store.scope(
2626
state: \.twoCounters,

Examples/CaseStudies/SwiftUICaseStudies/01-GettingStarted-Composition-TwoCounters.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@ import ComposableArchitecture
22
import SwiftUI
33

44
private let readMe = """
5-
This screen demonstrates how to take small features and compose them into bigger ones using the \
6-
`pullback` and `combine` operators on reducers, and the `scope` operator on stores.
5+
This screen demonstrates how to take small features and compose them into bigger ones using reducer builders and the `Scope` reducer, as well as the `scope` operator on stores.
76
87
It reuses the the domain of the counter screen and embeds it, twice, in a larger domain.
98
"""

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,7 @@ If you'd like to contribute a translation, please [open a PR](https://github.com
556556

557557
In other ways TCA is a little more lax than the other libraries. For example, Elm controls what kinds of effects can be created via the `Cmd` type, but TCA allows an escape hatch to any kind of effect since `Effect` conforms to the Combine `Publisher` protocol.
558558

559-
And then there are certain things that TCA prioritizes highly that are not points of focus for Redux, Elm, or most other libraries. For example, composition is very important aspect of TCA, which is the process of breaking down large features into smaller units that can be glued together. This is accomplished with the `pullback` and `combine` operators on reducers, and it aids in handling complex features as well as modularization for a better-isolated code base and improved compile times.
559+
And then there are certain things that TCA prioritizes highly that are not points of focus for Redux, Elm, or most other libraries. For example, composition is very important aspect of TCA, which is the process of breaking down large features into smaller units that can be glued together. This is accomplished with reducer builders and operators like `Scope`, and it aids in handling complex features as well as modularization for a better-isolated code base and improved compile times.
560560
</details>
561561

562562
## Credits and thanks

0 commit comments

Comments
 (0)