MCPcopy Index your code
hub / github.com/TanStack/table / safeUpdater

Function safeUpdater

examples/react/custom-features/src/main.tsx:98–101  ·  view source on GitHub ↗
(old)

Source from the content-addressed store, hash-verified

96 createTable: <TData extends RowData>(table: Table<TData>): void => {
97 table.setDensity = (updater) => {
98 const safeUpdater: Updater<DensityState> = (old) => {
99 let newState = functionalUpdate(updater, old)
100 return newState
101 }
102 return table.options.onDensityChange?.(safeUpdater)
103 }
104 table.toggleDensity = (value) => {

Callers

nothing calls this directly

Calls 1

functionalUpdateFunction · 0.85

Tested by

no test coverage detected