@jsvision/datagrid / createErrorRegistry
Function: createErrorRegistry()
createErrorRegistry():
ErrorRegistry
Defined in: datagrid/src/error-registry.ts:56
Create a reactive ErrorRegistry. set/clear publish a fresh Map reference so effects that read has/keys/message re-run, driving the gridInvalid overpaint reactively; a small companion signal carries the single active-message channel that the band binds. Uses only bare signals — no computed — matching the package's controller convention.
Returns
An ErrorRegistry.
Example
ts
import { createErrorRegistry, cellKey } from '@jsvision/datagrid';
const errors = createErrorRegistry();
errors.set(cellKey(1, 'qty'), 'Quantity must be positive');
errors.has(cellKey(1, 'qty')); // true
errors.active(); // 'Quantity must be positive'
errors.clear(cellKey(1, 'qty'));
errors.active(); // null