aboutsummaryrefslogtreecommitdiff
path: root/tests/format.test.ts
diff options
context:
space:
mode:
authornetop://ウィビ <paul@webb.page>2026-04-24 17:57:26 -0700
committernetop://ウィビ <paul@webb.page>2026-04-24 17:57:26 -0700
commit41eef08bc409ba2a5a49e7d785bd113da51bab23 (patch)
treece45faaafcded4e7b8de1154db5270203926c164 /tests/format.test.ts
parent216441d3564e00aabfac7e8acf346e34a5db9598 (diff)
downloadgraphiql-41eef08bc409ba2a5a49e7d785bd113da51bab23.tar.gz
graphiql-41eef08bc409ba2a5a49e7d785bd113da51bab23.zip
Push value prop changes into Editor's CodeMirror state
Editor read the value prop once at mount and never reconciled later mutations into the CodeMirror doc. Result viewer never showed query output, format button output never reached the editor, and history loads stayed invisible. Add an effect that diffs the doc against the incoming value and dispatches a replacement transaction when they differ — guard against the user-typing echo by skipping when they already match.
Diffstat (limited to 'tests/format.test.ts')
0 files changed, 0 insertions, 0 deletions