WarUI

State validation and stale reference reconciliation

GRID-A21-F11P1beyond-baselinePlanned

Validates incoming state against the schema and the current column and row definitions, repairs what it safely can and reports the rest. A strict mode is available for teams that prefer failing over silent repair.

Planned. This page shows the specification from issue #201. The live example, source for every framework and the API reference replace it when the feature ships.

Live example

A grid and a textarea preloaded with state that contains three deliberate problems.

Expected behavior

In lenient mode, Apply restores the valid parts and the report lists the dropped column, the dropped row ids and the clamped width. In strict mode, Apply makes no change and the same issues are reported as errors.

Planned API surface

validateState(state)setState(state, {strict})RestoreReportonStateRestoreWarning

Acceptance criteria

  • validateState is a pure function that never mutates the grid. (pending)
  • RestoreReport lists each issue with a slice, path, code and action (dropped, clamped or defaulted). (pending)
  • Strict mode applies nothing if any issue is found. (pending)
  • Issue codes are stable and documented. (pending)
  • Report generation for 10,000 stale ids completes in under 50 ms on the reference hardware. (pending)