Skip to content

@jsvision/datagrid / createDirtyRegistry

Function: createDirtyRegistry()

createDirtyRegistry(): DirtyRegistry

Defined in: datagrid/src/editing.ts:80

Create a reactive dirty registry. add/delete publish a fresh Set reference so effects that read has/keys re-run, driving the marker overpaint and the isDirty rollups reactively.

Returns

DirtyRegistry

A DirtyRegistry.

Example

ts
import { createDirtyRegistry, cellKey } from '@jsvision/datagrid';
const dirty = createDirtyRegistry();
dirty.add(cellKey(1, 'name'));
dirty.has(cellKey(1, 'name')); // true