Skip to content
This repository was archived by the owner on Aug 11, 2024. It is now read-only.

Commit 6ff6be7

Browse files
committed
Adapt Discover view
1 parent cffca91 commit 6ff6be7

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

xcode/Subconscious/Shared/Components/Discover/DiscoverNavigationView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ struct DiscoverNavigationView: View {
2626
ScrollView {
2727
VStack {
2828
switch store.state.loadingStatus {
29-
case .loading:
29+
case .loading, .initial:
3030
Spacer()
3131
ProgressView()
3232
Spacer()

xcode/Subconscious/Shared/Components/Discover/DiscoverView.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,9 @@ struct DiscoverView: View {
7171
.frame(maxWidth: .infinity)
7272
/// Replay some app actions on discover store
7373
.onReceive(
74-
app.actions.compactMap(DiscoverAction.from),
74+
app.actions
75+
.compactMap(DiscoverAction.from)
76+
.filter { _ in app.state.selectedAppTab == .discover },
7577
perform: store.send
7678
)
7779
/// Replay some discover actions on app store

0 commit comments

Comments
 (0)