@lvce-editor/editor-worker 19.60.0 → 19.60.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/editorWorkerMain.js +3 -1
- package/package.json +1 -1
package/dist/editorWorkerMain.js
CHANGED
|
@@ -15792,7 +15792,7 @@ const applyRender = (oldState, newState, diffResult) => {
|
|
|
15792
15792
|
return commands;
|
|
15793
15793
|
};
|
|
15794
15794
|
|
|
15795
|
-
const render2 = (uid,
|
|
15795
|
+
const render2 = (uid, _diffResult) => {
|
|
15796
15796
|
const editor = get$8(uid);
|
|
15797
15797
|
if (!editor) {
|
|
15798
15798
|
return [];
|
|
@@ -15801,6 +15801,8 @@ const render2 = (uid, diffResult) => {
|
|
|
15801
15801
|
newState,
|
|
15802
15802
|
oldState
|
|
15803
15803
|
} = editor;
|
|
15804
|
+
// Diagnostics can change after the caller calculated its diff in a separate RPC.
|
|
15805
|
+
const diffResult = diff(oldState, newState);
|
|
15804
15806
|
set$8(uid, newState, newState);
|
|
15805
15807
|
const commands = applyRender(oldState, newState, diffResult);
|
|
15806
15808
|
return commands;
|