Skip to content

RefreshReason

RefreshReason = DebugRefreshReasonBase | { _tag: "commit"; events: ReadonlyArray<AnyDecoded | PartialAnyDecoded>; writeTables: ReadonlyArray<string>; } | { _tag: "react"; api: string; label?: string; stackInfo?: StackInfo; } | { _tag: "subscribe.initial"; label?: string; } | { _tag: "subscribe.update"; label?: string; } | { _tag: "manual"; label?: string; }

Defined in: packages/@livestore/livestore/src/store/store-types.ts:56

DebugRefreshReasonBase

{ _tag: "commit"; events: ReadonlyArray<AnyDecoded | PartialAnyDecoded>; writeTables: ReadonlyArray<string>; }

_tag: "commit"

events: ReadonlyArray<AnyDecoded | PartialAnyDecoded>

The events that were applied

writeTables: ReadonlyArray<string>

The tables that were written to by the event

{ _tag: "react"; api: string; label?: string; stackInfo?: StackInfo; }

_tag: "react"

api: string

optional label: string

optional stackInfo: StackInfo

{ _tag: "subscribe.initial"; label?: string; }

_tag: "subscribe.initial"

optional label: string

{ _tag: "subscribe.update"; label?: string; }

_tag: "subscribe.update"

optional label: string

{ _tag: "manual"; label?: string; }

_tag: "manual"

optional label: string