Skip to content

@serenity-is/corelib / reloadLookupAsync

Function: reloadLookupAsync()

reloadLookupAsync<TItem>(key): Promise<Lookup<TItem>>

Defined in: src/base/scriptdata.ts:328

Forces a reload of a lookup from the server, bypassing the client-side cache. Note this only clears the browser cache entry; it does not invalidate server-side caches.

Type Parameters

TItem

TItem = any

Row type of the lookup items.

Parameters

key

string

Lookup key to reload.

Returns

Promise<Lookup<TItem>>

A promise resolving to the freshly loaded Lookup.