tanstack-preact-table-table-state
Installation
SKILL.md
This skill builds on @tanstack/table-core#core and getting-started. Preact selection resembles React, but imports and store bindings must remain Preact-native.
State Mental Model
TanStack Table is primarily a state coordinator. Keep state internal unless another subsystem needs to read, persist, or drive it. With no initialState, atoms, state, or on[State]Change, the table owns every registered state slice.
table.baseAtomsare internal writable atoms initialized from resolved initial state.table.atomsare readonly derived atoms for the active owner of each registered slice.table.storeis the readonly flat store assembled from those atoms.table.statecontains only the result of the seconduseTableselector.
Only registered features contribute state and types. If pagination is absent from table.atoms, table.store, table.state, or table options, add rowPaginationFeature; do not cast around the missing API. Keep features, data, and columns stable across renders.