Skip to content

Welshman Docs / @welshman/store / makeCachedLoader

Function: makeCachedLoader() ​

makeCachedLoader<T>(__namedParameters): (key, relays, force) => Promise<undefined | T>

Defined in: store/src/collection.ts:40

Type Parameters ​

T ​

T

Parameters ​

__namedParameters ​

CachedLoaderOptions<T>

Returns ​

(key, relays, force): Promise<undefined | T>

Parameters ​

key ​

string

relays ​

string[] = []

force ​

boolean = false

Returns ​

Promise<undefined | T>