diff --git a/src/stores/colors.ts b/src/stores/colors.ts index cb063822..f6c51a05 100644 --- a/src/stores/colors.ts +++ b/src/stores/colors.ts @@ -36,7 +36,7 @@ export const useColorStore = defineStore('colorStore', { }, persist: { key: STORE_UI_COLORS, - paths: ['colorPreference'], + pick: ['colorPreference'], }, }); diff --git a/src/stores/layout.ts b/src/stores/layout.ts index 1984c72e..ce770723 100644 --- a/src/stores/layout.ts +++ b/src/stores/layout.ts @@ -117,7 +117,7 @@ export const useLayoutStore = defineStore('layoutStore', { }, persist: { key: STORE_LAYOUTS, - afterRestore: (context) => { + afterHydrate: (context) => { if ( context.store.dashboardLayout === null || typeof context.store.dashboardLayout === 'string' || diff --git a/src/stores/pairlistConfig.ts b/src/stores/pairlistConfig.ts index ec2b1f7c..2de8dad7 100644 --- a/src/stores/pairlistConfig.ts +++ b/src/stores/pairlistConfig.ts @@ -250,7 +250,7 @@ export const usePairlistConfigStore = defineStore( { persist: { key: 'ftPairlistConfig', - paths: ['savedConfigs', 'configName'], + pick: ['savedConfigs', 'configName'], }, }, ); diff --git a/src/stores/plotConfig.ts b/src/stores/plotConfig.ts index 534dab2e..b1acf6ff 100644 --- a/src/stores/plotConfig.ts +++ b/src/stores/plotConfig.ts @@ -80,8 +80,8 @@ export const usePlotConfigStore = defineStore('plotConfig', { }, persist: { key: FT_PLOT_CONFIG_KEY, - paths: ['plotConfigName', 'customPlotConfigs'], - afterRestore: (context) => { + pick: ['plotConfigName', 'customPlotConfigs'], + afterHydrate: (context) => { if (Object.keys(context.store.customPlotConfigs).length === 0) { console.log('Initialized plotconfig'); context.store.customPlotConfigs = { default: deepClone(EMPTY_PLOTCONFIG) };