Live Data Component Store API
Last modified by Vincent Massol on 2026/11/30 17:29
Register and load operations add Live Data components to the store and resolve them by kind and key.
Reference
register
Add a new component to the store.
register(
kind: string,
key: string,
componentProvider: () => Promise<Component>,
): voidParameters
- kind: string: the kind of the registered component
- key: string: the unique component key in the kind
- componentProvider: () => Promise<Component>: an asynchronous provider of the component to register. Only resolved when loaded.
load
Resolve a component of the given kind by its key. A Promise is returned, allowing to wait for the component to be registered before continuing.
load(kind: string, key: string): Promise<Component | (() => Promise<Component>)>Parameters
- kind: string: the kind of the registered component
- key: string: he unique component key in the kind