diff --git a/src/common/base-store.ts b/src/common/base-store.ts index d59fb1d36a..17cc8d08e1 100644 --- a/src/common/base-store.ts +++ b/src/common/base-store.ts @@ -2,7 +2,7 @@ import path from "path" import Config from "conf" import { Options as ConfOptions } from "conf/dist/source/types" import { app, ipcMain, IpcMainEvent, ipcRenderer, IpcRendererEvent, remote } from "electron" -import { action, comparer, IReactionOptions, observable, reaction, runInAction, toJS, when } from "mobx"; +import { action, IReactionOptions, observable, reaction, runInAction, toJS, when } from "mobx"; import Singleton from "./utils/singleton"; import { getAppVersion } from "./utils/app-version"; import logger from "../main/logger"; @@ -28,9 +28,6 @@ export class BaseStore extends Singleton { this.params = { autoLoad: false, syncEnabled: true, - syncOptions: { - equals: comparer.structural, - }, ...params, } this.init(); diff --git a/src/common/cluster-store.ts b/src/common/cluster-store.ts index 4406397f4b..4835d66124 100644 --- a/src/common/cluster-store.ts +++ b/src/common/cluster-store.ts @@ -2,7 +2,7 @@ import type { WorkspaceId } from "./workspace-store"; import path from "path"; import { app, ipcRenderer, remote, webFrame } from "electron"; import { unlink } from "fs-extra"; -import { action, computed, observable, reaction, toJS } from "mobx"; +import { action, comparer, computed, observable, reaction, toJS } from "mobx"; import { BaseStore } from "./base-store"; import { Cluster, ClusterState } from "../main/cluster"; import migrations from "../migrations/cluster-store" @@ -90,6 +90,9 @@ export class ClusterStore extends BaseStore { configName: "lens-cluster-store", accessPropertiesByDotNotation: false, // To make dots safe in cluster context names migrations: migrations, + syncOptions: { + equals: comparer.structural, + }, }); this.pushStateToViewsAutomatically()