Skip to content

Commit c69bcff

Browse files
committed
refactor: update TCA to 0.50.1 with bumping up
1 parent 9e9e8df commit c69bcff

5 files changed

Lines changed: 15 additions & 15 deletions

File tree

Examples/TCA-Example/TCA-Example/Feature/Page1/Page1Core.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public struct Page1: ReducerProtocol {
3636

3737
case .onTapRootRandomBackOrNext:
3838
sideEffect.routeToRootRandomBackOrNext()
39-
return Effect(value: .getPaths)
39+
return EffectTask(value: .getPaths)
4040

4141
case .onTapBack:
4242
sideEffect.routeToBack()

Examples/TCA-Example/TCA-Example/Feature/Page2/Page2Core.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@ public struct Page2: ReducerProtocol {
3030

3131
case .onTapRootPage3:
3232
sideEffect.routeToRootPage3()
33-
return Effect(value: .getPaths)
33+
return EffectTask(value: .getPaths)
3434

3535
case .onRemovePage1:
3636
sideEffect.removePage1()
37-
return Effect(value: .getPaths)
37+
return EffectTask(value: .getPaths)
3838

3939
case .onTapBack:
4040
sideEffect.routeToBack()

Examples/TCA-Example/TCA-Example/Feature/Page3/Page3Core.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ public struct Page3: ReducerProtocol {
99
self.message = message
1010
}
1111

12-
@BindableState var message: String
12+
@BindingState var message: String
1313
}
1414

1515
public enum Action: Equatable, BindableAction {
@@ -42,7 +42,7 @@ public struct Page3: ReducerProtocol {
4242

4343
case .onRemovePage1And2:
4444
sideEffect.removePage1And2()
45-
return Effect(value: .getPaths)
45+
return EffectTask(value: .getPaths)
4646

4747
case .onTapBack:
4848
sideEffect.routeToBack()

LinkNavigator-Example.xcworkspace/xcshareddata/swiftpm/Package.resolved

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ If you'd like to contribute a translation, please [open a PR](https://github.com
132132
LinkNavigator provides 2 Example Apps.
133133

134134
- [`MVI` based example](https://github.com/interactord/LinkNavigator/tree/main/Examples/MVI-Example)
135-
- [`TCA` based example](https://github.com/interactord/LinkNavigator/tree/main/Examples/TCA-Example) - with [0.49.2 release](https://github.com/pointfreeco/swift-composable-architecture/releases/tag/0.49.2)
135+
- [`TCA` based example](https://github.com/interactord/LinkNavigator/tree/main/Examples/TCA-Example) - with [0.50.1 release](https://github.com/pointfreeco/swift-composable-architecture/releases/tag/0.50.1)
136136

137137
<p align="leading"><img src="https://user-images.githubusercontent.com/107832509/198525187-7d524e7f-7ad6-48c0-886a-805ad3a4e6a2.gif" width="25%"></p>
138138

@@ -279,7 +279,7 @@ let package = Package(
279279
targets: ["MyPackage"]),
280280
],
281281
dependencies: [
282-
.package(url: "https://github.com/interactord/LinkNavigator.git", .upToNextMajor(from: "0.5.0"))
282+
.package(url: "https://github.com/interactord/LinkNavigator.git", .upToNextMajor(from: "0.5.4"))
283283
],
284284
targets: [
285285
.target(

0 commit comments

Comments
 (0)