Skip to content

Commit

Permalink
Use CaseKeyPath (#2637)
Browse files Browse the repository at this point in the history
  • Loading branch information
yimajo authored Dec 11, 2023
1 parent d3db821 commit 897cf6a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -589,8 +589,8 @@ final class StackReducerTests: BaseTCATestCase {
case child2(Child.Action)
}
var body: some ReducerOf<Self> {
Scope(state: /State.child1, action: /Action.child1) { Child() }
Scope(state: /State.child2, action: /Action.child2) { Child() }
Scope(state: \.child1, action: \.child1) { Child() }
Scope(state: \.child2, action: \.child2) { Child() }
}
}
@Reducer
Expand All @@ -616,7 +616,7 @@ final class StackReducerTests: BaseTCATestCase {
return .none
}
}
.forEach(\.path, action: /Action.path) {
.forEach(\.path, action: \.path) {
Path()
}
}
Expand Down Expand Up @@ -715,7 +715,7 @@ final class StackReducerTests: BaseTCATestCase {
return .none
}
}
.forEach(\.path, action: /Action.path) {
.forEach(\.path, action: \.path) {
Path()
}
}
Expand Down
2 changes: 1 addition & 1 deletion Tests/ComposableArchitectureTests/StoreTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -745,7 +745,7 @@ final class StoreTests: BaseTCATestCase {
return .none
}
}
.ifLet(\.child, action: /Action.child) {
.ifLet(\.child, action: \.child) {
Child_testChildParentEffectCancellation()
}
}
Expand Down

0 comments on commit 897cf6a

Please sign in to comment.