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

Function getMemoOptions

packages/table-core/src/utils.ts:202–219  ·  view source on GitHub ↗
(
  tableOptions: Partial<TableOptionsResolved<any>>,
  debugLevel:
    | 'debugAll'
    | 'debugCells'
    | 'debugTable'
    | 'debugColumns'
    | 'debugRows'
    | 'debugHeaders',
  key: string,
  onChange?: (result: any) => void,
)

Source from the content-addressed store, hash-verified

200}
201
202export function getMemoOptions(
203 tableOptions: Partial<TableOptionsResolved<any>>,
204 debugLevel:
205 | 'debugAll'
206 | 'debugCells'
207 | 'debugTable'
208 | 'debugColumns'
209 | 'debugRows'
210 | 'debugHeaders',
211 key: string,
212 onChange?: (result: any) => void,
213) {
214 return {
215 debug: () => tableOptions?.debugAll ?? tableOptions[debugLevel],
216 key: process.env.NODE_ENV === 'development' && key,
217 onChange,
218 }
219}

Callers 15

getFilteredRowModelFunction · 0.90
getSortedRowModelFunction · 0.90
getFacetedMinMaxValuesFunction · 0.90
getGroupedRowModelFunction · 0.90
getCoreRowModelFunction · 0.90
getExpandedRowModelFunction · 0.90
getPaginationRowModelFunction · 0.90
getFacetedUniqueValuesFunction · 0.90
getFacetedRowModelFunction · 0.90
headers.tsFile · 0.90
createColumnFunction · 0.90
createRowFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected