@lvce-editor/about-view 7.36.0 → 7.37.0
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/aboutWorkerMain.js
CHANGED
|
@@ -2329,11 +2329,13 @@ const applyRender = (oldState, newState, diffResult) => {
|
|
|
2329
2329
|
return commands;
|
|
2330
2330
|
};
|
|
2331
2331
|
|
|
2332
|
-
const doRender = async (uid,
|
|
2332
|
+
const doRender = async (uid, _diffResult) => {
|
|
2333
2333
|
const {
|
|
2334
2334
|
oldState,
|
|
2335
2335
|
scheduledState
|
|
2336
2336
|
} = get(uid);
|
|
2337
|
+
// State may change between the diff2 and render2 RPCs.
|
|
2338
|
+
const diffResult = diff(oldState, scheduledState);
|
|
2337
2339
|
set$1(uid, scheduledState, scheduledState);
|
|
2338
2340
|
const commands = applyRender(oldState, scheduledState, diffResult);
|
|
2339
2341
|
if (!isConnected()) {
|