We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf55a32 commit 363d9a2Copy full SHA for 363d9a2
src/client/packages/idom-client-react/src/json-patch.js
@@ -11,7 +11,7 @@ export function useJsonPatchCallback(initial) {
11
// We CANNOT mutate the part of the document because React checks some
12
// attributes of the model (e.g. model.attributes.style is checked for
13
// identity).
14
- doc.current = applyNonMutativePatch(doc, patch, false, false, true);
+ doc.current = applyNonMutativePatch(doc.current, patch, false, false, true);
15
} else {
16
// We CAN mutate the document here though because we know that nothing above
17
// The patch `path` is changing. Thus, maintaining the identity for that section
0 commit comments