@lvce-editor/editor-worker 19.71.5 → 19.71.6
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 +4 -1
- package/package.json +1 -1
package/dist/editorWorkerMain.js
CHANGED
|
@@ -7709,7 +7709,10 @@ const wrapCommand$1 = (fn, preservesTypingCoalescing = false, returnState = true
|
|
|
7709
7709
|
return returnState ? newEditor : undefined;
|
|
7710
7710
|
}
|
|
7711
7711
|
const newEditorWithDerivedState = await updateDerivedState(state, newEditor);
|
|
7712
|
-
|
|
7712
|
+
// Another command can commit before the renderer consumes this edit.
|
|
7713
|
+
// Keep its last rendered baseline, including renders completed while we awaited derived state.
|
|
7714
|
+
const renderedState = get$8(uid)?.oldState ?? oldInstance.oldState;
|
|
7715
|
+
set$a(uid, renderedState, newEditorWithDerivedState);
|
|
7713
7716
|
await dispose$3();
|
|
7714
7717
|
if (editorDiagnosticEffect.isActive(state, newEditorWithDerivedState)) {
|
|
7715
7718
|
void editorDiagnosticEffect.apply(newEditorWithDerivedState);
|