Skip to content

Commit 816f68e

Browse files
author
Alex Usbergo
committedJun 26, 2020
Fixed demo project
1 parent 2d53f74 commit 816f68e

File tree

2 files changed

+3
-12
lines changed

2 files changed

+3
-12
lines changed
 

‎Demo/store_hacker_news/store_hacker_news.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved

+1-10
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,9 @@
66
"repositoryURL": "https://github.com/alexdrone/Store",
77
"state": {
88
"branch": "master",
9-
"revision": "d4c19a3553ad24429fc41fd029fb6645f2a17362",
9+
"revision": "2d53f740f60a11b298382bb39c58ea0005499cd2",
1010
"version": null
1111
}
12-
},
13-
{
14-
"package": "SwiftProtobuf",
15-
"repositoryURL": "https://github.com/apple/swift-protobuf.git",
16-
"state": {
17-
"branch": null,
18-
"revision": "7f36441e3372665b1b414f8ac93b5905cc42a405",
19-
"version": "1.9.0"
20-
}
2112
}
2213
]
2314
},

‎Demo/store_hacker_news/store_hacker_news/Store/RootStore.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ struct AppState: Codable {
1010
}
1111

1212
/// Fetches the top stories from HackerNews.
13-
struct FetchTopStories: ActionProtocol {
13+
struct FetchTopStories: Action {
1414
private let cancellable = AnyCancellableRef()
1515

1616
/// The execution body for this action.
@@ -39,7 +39,7 @@ class AppStateStore: CodableStore<AppState> {
3939
/// Hackernews REST endpoints.
4040
let api = API()
4141
/// The ongoing transaction.
42-
private var fetchTopStoriesTransaction: TransactionProtocol?
42+
private var fetchTopStoriesTransaction: AnyTransaction?
4343

4444
convenience init() {
4545
self.init(model: AppState(), diffing: .async)

0 commit comments

Comments
 (0)