MCPcopy
hub / github.com/TanStack/table / safeUpdater

Function safeUpdater

examples/react/custom-features/src/main.tsx:97–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

functionalUpdateFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…