Remote / foldkit-remote/why

timeline

function · packages/remote/src/why.ts:303

function timeline<Domain extends AnyDomain, Message>(
  domain: Domain,
  start: ModelOfDomain<Domain>,
  history: ReadonlyArray<{
    readonly message: Message
    readonly model: ModelOfDomain<Domain>
  }>,
  reads: Readonly<
    Record<string, Projection<ModelOfDomain<Domain>, RemoteData<unknown>>>
  >,
  options?: ExplainOptions<ModelOfDomain<Domain>>,
): ReadonlyArray<ReadStep<Message>>

Each change of each read's tag across a recorded history (the Messages update handled, each with the Model it left, as Foldkit's devtools records them), with the Message that made it and why at the Model it changed to. regression marks a read that showed a value and stopped with no reason a reader can see (#234).