0
Fork 0
mirror of https://github.com/TanStack/table.git synced 2026-11-18 18:55:54 +00:00
table/docs/framework/solid/reference/functions/createTable.md
Kevin Van Cott c11ad756b6
fix: useTableContext hmr and type fixes (#6355)
* fix: useTableContext hmr and type fixes

* tselected

* regen docs
2026-06-28 17:43:30 -05:00

954 B

id title
createTable createTable

Function: createTable()

function createTable<TFeatures, TData>(tableOptions): SolidTable<TFeatures, TData>;

Defined in: createTable.ts:61

Creates a Solid table instance backed by Solid-aware TanStack Store atoms.

Table APIs and atom reads participate in Solid dependency tracking, so computations that read a specific slice can update without invalidating unrelated UI. Use table.Subscribe to create atom-tracked render boundaries.

Type Parameters

TFeatures

TFeatures extends TableFeatures

TData

TData extends RowData

Parameters

tableOptions

TableOptions<TFeatures, TData>

Returns

SolidTable<TFeatures, TData>

Example

const table = createTable(
  {
    features,
    columns,
    data,
  },
)