fix(index): validate sortable columns before the first load #101
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/index-validate-before-load"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Stacked on #100 (only because the worktree was; the change is independent of the block editor).
Indexcreated its own query state — which loads immediately — before validating sortable columns againstqueryOptions.sorts, so an invalid configuration fired one request before throwing. Validation now runs first.Play tests:
Layout/IndexDefaultandInvalid Sort Configurationwere failing on main's line;expect.any(AbortSignal)throws in the browser runner (replaced by a shape check) and the row checkbox label isSelect <first cell>now.Checks: typecheck, lint, format, bun test (139), Index + DataTable play tests (25) green.