Remote / foldkit-remote/live

live

function · packages/remote/src/live.ts:55

function live<
  AppModel,
  Store extends RemoteModel,
  Names extends string,
  Value,
  Name extends string,
  Id extends string = string,
>(
  domain: BoundRemote<AppModel, Store, Names>,
  selection: EntitySelection<Value, Name, Id> &
    Registered<Name, Names, 'Entity'>,
  id: NoInfer<Id>,
): Projection<AppModel, RemoteData<Value>>

Data.get, and the projection also subscribes to the entity's changes: its requirements are marked live, so subscriptions streams them for the Surfaces that read it.