Live Data Component Store API

Last modified by Manuel Leduc on 2026/03/24 11:15

Content

Reference

Provide the operations to register and resolve Live Data components.

register

Add a new component to the store.

register(
    kind: string,
    key: string,
    componentProvider: () => Promise<Component>,
): void

Parameters

  • 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

Get Connected