mastodon_cache.svelte.ts

Declarations
#

2 declarations

view source

mastodon_cache_context
#

mastodon_cache.svelte.ts view source

{ get: (error_message?: string | undefined) => MastodonCache; get_maybe: () => MastodonCache | undefined; set: (value: MastodonCache) => MastodonCache; }

MastodonCache
#

mastodon_cache.svelte.ts view source

load_data

type () => Promise<Array<[Url, FetchValueCacheItem]> | null>

readonly

data

If undefined, it's still loading. null means no data.

type FetchValueCache | undefined | null

constructor

type new (load_data: () => Promise<[Url, { key: string; url: string; params: any; value: any; etag: string | null; last_modified: string | null; }][] | null>, load_on_mount?: boolean): MastodonCache

load_data
type () => Promise<[Url, { key: string; url: string; params: any; value: any; etag: string | null; last_modified: string | null; }][] | null>
load_on_mount
type boolean
default true

load