@lvce-editor/main-area-worker 9.56.1 → 9.56.2
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.
|
@@ -6391,7 +6391,9 @@ const handleWorkspaceRefresh = async (state, refresh = {}) => {
|
|
|
6391
6391
|
const handleWorkspaceRefreshWithContext = async (context, refresh = {}) => {
|
|
6392
6392
|
const state = context.getState();
|
|
6393
6393
|
const newState = await handleWorkspaceRefresh(state, refresh);
|
|
6394
|
-
|
|
6394
|
+
if (newState !== state) {
|
|
6395
|
+
await context.updateState(() => newState);
|
|
6396
|
+
}
|
|
6395
6397
|
};
|
|
6396
6398
|
|
|
6397
6399
|
const hasActiveTextEditor = state => {
|