@lvce-editor/find-widget-worker 2.6.0 → 2.7.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.
|
@@ -889,10 +889,11 @@ const create$2 = () => {
|
|
|
889
889
|
wrapCommand(fn) {
|
|
890
890
|
const wrapped = async (uid, ...args) => {
|
|
891
891
|
const {
|
|
892
|
+
oldState,
|
|
892
893
|
newState
|
|
893
894
|
} = states[uid];
|
|
894
895
|
const newerState = await fn(newState, ...args);
|
|
895
|
-
if (newState === newerState) {
|
|
896
|
+
if (oldState === newerState || newState === newerState) {
|
|
896
897
|
return;
|
|
897
898
|
}
|
|
898
899
|
const latest = states[uid];
|