diff options
author | Paul Frazee <pfrazee@gmail.com> | 2023-11-01 18:45:59 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-01 18:45:59 -0700 |
commit | 59271663b5f0716982056eb52890c71359fb6553 (patch) | |
tree | be0aa8cbf83ca1cb3cb0ad907b9ba8d96a85e92d /src/state/models/ui/my-feeds.ts | |
parent | f57a8cf8ba0cd10a54abf35d960d8fb90266fa6b (diff) | |
download | voidsky-59271663b5f0716982056eb52890c71359fb6553.tar.zst |
Store saved feeds on the root store so we can load on init (#1793)
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', |