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

Type declaration

DebugRefreshReasonBase

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

_tag

_tag: "commit"

events

events: ReadonlyArray<AnyDecoded | PartialAnyDecoded>

The events that were applied

writeTables

writeTables: ReadonlyArray<string>

The tables that were written to by the event

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

_tag

_tag: "react"

api

api: string

label?

optional label: string

stackInfo?

optional stackInfo: StackInfo

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

_tag

_tag: "subscribe.initial"

label?

optional label: string

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

_tag

_tag: "subscribe.update"

label?

optional label: string

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

_tag

_tag: "manual"

label?

optional label: string