Skip to content

Documentation / @finchart/core / index / HistoryLoader

Interface: HistoryLoader ​

Defined in: packages/core/src/extensions/infinite-history.ts:175

Extended by ​

Properties ​

statusChanges ​

statusChanges: Observable<HistoryStatus>

Defined in: packages/core/src/extensions/infinite-history.ts:184

Notifies on every state change, with the state as it is at delivery — the pair a status bar or useSyncExternalStore needs. When a change is made from inside another listener, a listener can hear the same state twice in a row; it never hears a state that is no longer current.

Methods ​

dispose() ​

dispose(): void

Defined in: packages/core/src/extensions/infinite-history.ts:186

Stops listening and reads "stopped" (unless already done or terminated); a response landing afterwards is dropped. Safe to call twice.

Returns ​

void


status() ​

status(): HistoryStatus

Defined in: packages/core/src/extensions/infinite-history.ts:177

Current state — a snapshot safe to read at any time.

Returns ​

HistoryStatus