Skip to content

Home > @liquidrazor/list-display > useListCore

useListCore() function

Core hook that encapsulates the data-management logic for ListDisplay. It wires a DataSource, schema metadata, and optional actions into a cohesive state machine that can be consumed by UI components.

Signature:

typescript
useListCore: <TRow = any, TRowId extends RowId = RowId>(config: ListConfig<TRow, TRowId>) => UseListCoreResult<TRow, TRowId>

Parameters

Parameter

Type

Description

config

ListConfig<TRow, TRowId>

Returns:

UseListCoreResult<TRow, TRowId>