diff --git a/packages/app-lib/src/state/cache.rs b/packages/app-lib/src/state/cache.rs index f68256057e..2aed5b2519 100644 --- a/packages/app-lib/src/state/cache.rs +++ b/packages/app-lib/src/state/cache.rs @@ -971,6 +971,7 @@ impl CachedEntry { && (cache_behaviour == CacheBehaviour::StaleWhileRevalidate || cache_behaviour == CacheBehaviour::StaleWhileRevalidateSkipOffline) + && crate::state::State::initialized() { tokio::task::spawn(async move { // TODO: if possible- find a way to do this without invoking state get