diff options
author | Paul Frazee <pfrazee@gmail.com> | 2023-11-01 21:14:47 -0700 |
---|---|---|
committer | Paul Frazee <pfrazee@gmail.com> | 2023-11-01 21:14:47 -0700 |
commit | 29bfed78f78f284d5956d3e3b621a37c0d7d830d (patch) | |
tree | 81a8d392f0850aa69ed7af7bbb43d493adae8eee /src/state/models/ui/my-feeds.ts | |
parent | 232e90c0a014069ef6c899dabd5bc240a9cd6e4e (diff) | |
parent | 59271663b5f0716982056eb52890c71359fb6553 (diff) | |
download | voidsky-29bfed78f78f284d5956d3e3b621a37c0d7d830d.tar.zst |
Merge branch 'main' of github.com:bluesky-social/social-app into main
Diffstat (limited to 'src/state/models/ui/my-feeds.ts')
-rw-r--r-- | src/state/models/ui/my-feeds.ts | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/state/models/ui/my-feeds.ts b/src/state/models/ui/my-feeds.ts index 58f2e7f65..ade686338 100644 --- a/src/state/models/ui/my-feeds.ts +++ b/src/state/models/ui/my-feeds.ts @@ -77,6 +77,11 @@ export class MyFeedsUIModel { } } + clear() { + this.saved.clear() + this.discovery.clear() + } + registerListeners() { const dispose1 = reaction( () => this.rootStore.preferences.savedFeeds, @@ -107,7 +112,7 @@ export class MyFeedsUIModel { _reactKey: '__saved_feeds_header__', type: 'saved-feeds-header', }) - if (this.saved.isLoading) { + if (this.saved.isLoading && !this.saved.hasContent) { items.push({ _reactKey: '__saved_feeds_loading__', type: 'saved-feeds-loading', |