PluginProbe
Extendify / 3.2.1
Extendify v3.2.1
3.2.1 3.2.0 3.1.6 3.1.5 3.1.4 3.1.3 3.1.2 3.1.1 3.1.0 3.0.6 3.0.5 3.0.4 trunk 0.1.0 0.10.0 0.10.1 0.10.2 0.11.0 0.11.1 0.2.0 0.3.0 0.3.1 0.4.0 0.5.0 0.6.0 All 127 releases
← All changes | src/Launch/state/pages-selections.js +2 -1 3.1.23.2.1 View file →
@@ -1,5 +1,6 @@
1 1 import { safeParseJson } from '@shared/lib/parsing';
2 +import { safeLocalStorage } from '@shared/state/safe-local-storage';
2 3 import { create } from 'zustand';
3 4 import { createJSONStorage, devtools, persist } from 'zustand/middleware';
4 5
5 6 const initialState = {
@@ -33,9 +34,9 @@
33 34
34 35 export const usePagesSelectionStore = create(
35 36 persist(devtools(state, { name: 'Extendify Launch Pages Selections' }), {
36 37 name: key,
37 - storage: createJSONStorage(() => localStorage),
38 + storage: createJSONStorage(() => safeLocalStorage),
38 39 skipHydration: true,
39 40 }),
40 41 state,
41 42 );