PluginProbe
Extendify / 1.9.3
Extendify v1.9.3
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 0.7.0 All 126 releases
extendify / src / Library / state / GlobalSync.js

GlobalSync.js in Extendify 1.9.3, at src/Library/state/GlobalSync.js

18 lines 451 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 import { create } from 'zustand'
2 import { devtools, persist } from 'zustand/middleware'
3
4 // Similiar to Global.js but syncronous ("faster")
5 const state = (set) => ({
6 designColors: {},
7 setDesignColors(designColors) {
8 set({ designColors })
9 },
10 })
11
12 export const useGlobalSyncStore = create(
13 persist(devtools(state, { name: 'Extendify Library Globals Sync' }), {
14 name: 'extendify-library-globals-sync',
15 }),
16 state,
17 )
18