File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed
Sources/ComposableArchitecture
Tests/ComposableArchitectureTests Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -1034,8 +1034,7 @@ extension ScopedStoreReducer: AnyScopedStoreReducer {
10341034 removeDuplicates isDuplicate: ( ( ChildState , ChildState ) -> Bool ) ?
10351035 ) -> Store < ChildState , ChildAction > {
10361036 let id = id ? ( store. stateSubject. value)
1037- if
1038- store. canCacheChildren,
1037+ if store. canCacheChildren,
10391038 let id = id,
10401039 let childStore = store. children [ id] as? Store < ChildState , ChildAction >
10411040 {
Original file line number Diff line number Diff line change 1- import XCTest
21import ComposableArchitecture
2+ import XCTest
33
44@MainActor
55final class StoreLifetimeTests : BaseTCATestCase {
@@ -47,7 +47,7 @@ final class StoreLifetimeTests: BaseTCATestCase {
4747}
4848
4949@Reducer
50- fileprivate struct Child {
50+ private struct Child {
5151 struct State : Equatable {
5252 var count = 0
5353 }
@@ -66,7 +66,7 @@ fileprivate struct Child {
6666}
6767
6868@Reducer
69- fileprivate struct Parent {
69+ private struct Parent {
7070 struct State : Equatable {
7171 var child = Child . State ( )
7272 }
@@ -81,7 +81,7 @@ fileprivate struct Parent {
8181}
8282
8383@Reducer
84- fileprivate struct Grandparent {
84+ private struct Grandparent {
8585 struct State : Equatable {
8686 var child = Parent . State ( )
8787 }
You can’t perform that action at this time.
0 commit comments