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
Editing directly on the data browser corrupted #3430
ℹ️ You can help us to fix this issue faster by opening a pull request with a failing test. See our Contribution Guide for how to make a pull request, or read our New Contributor's Guide if this is your first time contributing.
Hi! I'd like to work on this. I could reproduce it on current alpha (10.0.0) and traced it to the React 19 upgrade.
Reproduction: edit the name cell of row A, type a new value, then click the name cell of row B. The new value is saved to row B (the notification shows row B's id), row A is unchanged.
Regression commit: I built both sides of c3e16c2 ("React 19 + react-router 7 + GraphiQL 5 coordinated upgrade", #3409) and ran the same steps:
baeaf8d1 (parent, React 16): row A is updated, correct
c3e16c27 (React 19): row B is overwritten
Cause:StringEditor commits on a native click listener on document.body, and BrowserTable saves with updateRow(this.props.current.row, name, newValue), i.e. the cell that is selected at commit time. React 16 attached its handlers to document, above body, so the editor committed before React selected the clicked cell. Since React 17, handlers are attached to the root container inside body, and React 18+ flushes discrete updates synchronously, so the clicked cell is already current when the editor commits.
Plan: remember the cell (row and column) when editing starts and commit to that cell instead of the currently selected one. I'll also check the "adding new row" case from the issue, which looks like the same cause.
Activity
parse-github-assistant commentedon Jul 30, 2026
🚀 Thanks for opening this issue!
ℹ️ You can help us to fix this issue faster by opening a pull request with a failing test. See our Contribution Guide for how to make a pull request, or read our New Contributor's Guide if this is your first time contributing.
404-html commentedon Jul 30, 2026
I think this one is quite critical. The issue is not present on dashboard version
9.1.1Mani7527 commentedon Nov 24, 2026
Hi! I'd like to work on this. I could reproduce it on current
alpha(10.0.0) and traced it to the React 19 upgrade.Reproduction: edit the
namecell of row A, type a new value, then click thenamecell of row B. The new value is saved to row B (the notification shows row B's id), row A is unchanged.Regression commit: I built both sides of c3e16c2 ("React 19 + react-router 7 + GraphiQL 5 coordinated upgrade", #3409) and ran the same steps:
baeaf8d1(parent, React 16): row A is updated, correctc3e16c27(React 19): row B is overwrittenCause:
StringEditorcommits on a nativeclicklistener ondocument.body, andBrowserTablesaves withupdateRow(this.props.current.row, name, newValue), i.e. the cell that is selected at commit time. React 16 attached its handlers todocument, abovebody, so the editor committed before React selected the clicked cell. Since React 17, handlers are attached to the root container insidebody, and React 18+ flushes discrete updates synchronously, so the clicked cell is alreadycurrentwhen the editor commits.Plan: remember the cell (row and column) when editing starts and commit to that cell instead of the currently selected one. I'll also check the "adding new row" case from the issue, which looks like the same cause.