Skip to content

Commit d9e946d

Browse files
committed
fix regression from 0.33.0
does not include a regression test for this. will do that in a future PR
1 parent b51434b commit d9e946d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/client/packages/idom-client-react/src/json-patch.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export function useJsonPatchCallback(initial) {
1111
// We CANNOT mutate the part of the document because React checks some
1212
// attributes of the model (e.g. model.attributes.style is checked for
1313
// identity).
14-
doc.current = applyNonMutativePatch(doc, patch, false, false, true);
14+
doc.current = applyNonMutativePatch(doc.current, patch, false, false, true);
1515
} else {
1616
// We CAN mutate the document here though because we know that nothing above
1717
// The patch `path` is changing. Thus, maintaining the identity for that section

0 commit comments

Comments
 (0)