function createTableState<TState>(initialValue): [() => TState, (updater) => void];function createTableState<TState>(initialValue): [() => TState, (updater) => void];Defined in: packages/svelte-table/src/createTableState.svelte.ts:18
Creates a small Svelte 5 state holder that accepts TanStack Table updaters.
This is useful when a table state slice should be owned outside the table with $state, but still needs to accept both value and functional updater forms from on[State]Change callbacks.
TState
TState
[() => TState, (updater) => void]
const [pagination, setPagination] = createTableState({
pageIndex: 0,
pageSize: 10,
})const [pagination, setPagination] = createTableState({
pageIndex: 0,
pageSize: 10,
})