Skip to content

Commit 40d1f53

Browse files
authored
Fix usage of static storage property (#2124)
* Fix usage of static storage property * Remove irrelevant timeout parameter * Add missing import
1 parent 98f3f51 commit 40d1f53

File tree

5 files changed

+5
-3
lines changed

5 files changed

+5
-3
lines changed

Sources/ComposableArchitecture/Documentation.docc/Tutorials/01-03-code-0003.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ struct MyApp: App {
99

1010
var body: some Scene {
1111
WindowGroup {
12-
CounterView(store: store)
12+
CounterView(store: MyApp.store)
1313
}
1414
}
1515
}

Sources/ComposableArchitecture/Documentation.docc/Tutorials/01-03-code-0004.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ struct MyApp: App {
1010

1111
var body: some Scene {
1212
WindowGroup {
13-
CounterView(store: store)
13+
CounterView(store: MyApp.store)
1414
}
1515
}
1616
}

Sources/ComposableArchitecture/Documentation.docc/Tutorials/03-02-code-0010.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ final class CounterFeatureTests: XCTestCase {
1616
$0.isTimerRunning = true
1717
}
1818
await clock.advance(by: .seconds(1))
19-
await store.receive(.timerTick, timeout: .seconds(2)) {
19+
await store.receive(.timerTick) {
2020
$0.count = 1
2121
}
2222
await store.send(.toggleTimerButtonTapped) {

Sources/ComposableArchitecture/Documentation.docc/Tutorials/03-04-code-0003.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import ComposableArchitecture
2+
import Foundation
23

34
struct NumberFactClient {
45
var fetch: (Int) async throws -> String

Sources/ComposableArchitecture/Documentation.docc/Tutorials/03-04-code-0004.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import ComposableArchitecture
2+
import Foundation
23

34
struct NumberFactClient {
45
var fetch: (Int) async throws -> String

0 commit comments

Comments
 (0)