MCPcopy Index your code
hub / github.com/simstudioai/sim / invalidateRowCount

Function invalidateRowCount

apps/sim/hooks/queries/tables.ts:176–180  ·  view source on GitHub ↗
(queryClient: ReturnType<typeof useQueryClient>, tableId: string)

Source from the content-addressed store, hash-verified

174}
175
176function invalidateRowCount(queryClient: ReturnType<typeof useQueryClient>, tableId: string) {
177 queryClient.invalidateQueries({ queryKey: tableKeys.rowsRoot(tableId) })
178 queryClient.invalidateQueries({ queryKey: tableKeys.detail(tableId) })
179 queryClient.invalidateQueries({ queryKey: tableKeys.lists() })
180}
181
182/**
183 * Invalidate only the row-count surfaces — the table detail and the tables

Callers 5

useBatchCreateTableRowsFunction · 0.85
useDeleteTableRowFunction · 0.85
useDeleteTableRowsFunction · 0.85
useImportCsvIntoTableFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected