diff --git a/neode-ui/src/composables/useCachedResource.ts b/neode-ui/src/composables/useCachedResource.ts index 9c2e74b8..28ed43a5 100644 --- a/neode-ui/src/composables/useCachedResource.ts +++ b/neode-ui/src/composables/useCachedResource.ts @@ -22,7 +22,7 @@ // - Abort-on-unmount: the fetcher receives an AbortSignal that fires when // the last subscribed component unmounts. -import { computed, getCurrentScope, onScopeDispose } from 'vue' +import { computed, getCurrentScope, onScopeDispose, type ComputedRef } from 'vue' import { useResourcesStore, type ResourceEntry, type ResourceLoadState } from '@/stores/resources' export interface CachedResourceOptions { @@ -44,12 +44,12 @@ export interface CachedResourceOptions { export interface CachedResource { entry: ResourceEntry /** Convenience computed views over the entry. */ - data: ReturnType> - loadState: ReturnType> - error: ReturnType> + data: ComputedRef + loadState: ComputedRef + error: ComputedRef /** True when data exists but is older than the TTL (drive an age badge). */ - isStale: ReturnType> - ageMs: ReturnType> + isStale: ComputedRef + ageMs: ComputedRef /** Force a refresh now (deduped with any in-flight one). */ refresh: () => Promise /** Mark stale + debounce-refresh all mounted users of this key. */ diff --git a/neode-ui/src/views/PeerFiles.vue b/neode-ui/src/views/PeerFiles.vue index c7e82c82..0caf201b 100644 --- a/neode-ui/src/views/PeerFiles.vue +++ b/neode-ui/src/views/PeerFiles.vue @@ -594,10 +594,11 @@