You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit adbda1b
Browse filesBrowse the repository at this point in the historyBrowse files
feat(types,components,plugin-grid): carry the staged row across the renderCellEditor seam as pendingRow (#7241)
`renderCellEditor`'s context on `DataTableSchema` gains a seventh member,
`pendingRow` — the persisted `row` shallow-merged with the row's staged,
unsaved edits. `row` keeps meaning the persisted record; neither is
redefined. `data-table` builds it from `pendingChanges`, identity-stable per
row while nothing new is staged, so a dependent widget's identity-keyed fetch
effects do not re-fire on every table re-render. `ObjectGrid` scopes a
`dependsOn` inline editor by `ctx.pendingRow ?? ctx.row`, so a parent edited
in the same row re-scopes the child before anything is saved, and the interim
marker that named the follow-up is gone with the interim.
The exact-shape pin in `@object-ui/types` is extended, not weakened, and
gains a control proving it can tell the seventh member's presence from its
absence. Test 4 of the grid fixture flips from pinning the saved-row
staleness to asserting that the staged parent scopes the child, with its own
proof that the staging landed and nothing was saved. The zod mirror encodes
`renderCellEditor` as `z.function()` with no parameter shape; only its
description records the delta. The docs snippet and prose for `data-table`
carry the new member.
Claude-Session: https://claude.ai/code/session_01NRRumy89BYdW9ogbcdHTho
Co-authored-by: Claude <noreply@anthropic.com>
0 commit comments