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
Parameter |
Type |
Description |
---|---|---|
key |
string |
The key used to identify the data. |
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.