Skip to main content

DevDataStore.load()

Home > @backstage/backend-dev-utils > DevDataStore > load

Loads data from the data store.

Signature:

load<T>(key: string): Promise<{
loaded: boolean;
data: T;
}>;

Parameters

ParameterTypeDescription
keystringThe key used to identify the data.

Returns:

Promise<{ loaded: boolean; data: T; }>

A promise that resolves to a result object that indicates whether the data was loaded, as well as the data.