[ Root System Explorer ]
Location:
Root
/
home
/
svaxkys
/
www
/
AcmaCulot
/
wp-content
/
plugins
/
redux-framework
/
extendify-sdk
/
src
/
state
+ Folder
+ File
Upload
Editing: Taxonomies.js
import create from 'zustand' export const useTaxonomyStore = create((set, get) => ({ taxonomies: {}, openedTaxonomies: [], setTaxonomies: (taxonomies) => set({ taxonomies, }), // This is here because I couldn't get the sidebar components to hold state on re-render toggleOpenedTaxonomy: (tax, add) => { const opened = get().openedTaxonomies set({ openedTaxonomies: add ? [...opened, tax] : [...opened.filter(t => t != tax)], }) }, }))
SAVE CHANGES
[ CANCEL ]
Name
Type
Actions
.. (Parent Directory)
📄 GlobalState.js
FILE
Ren
[EDIT]
DEL
📄 Importing.js
FILE
Ren
[EDIT]
DEL
📄 Taxonomies.js
FILE
Ren
[EDIT]
DEL
📄 Templates.js
FILE
Ren
[EDIT]
DEL
📄 User.js
FILE
Ren
[EDIT]
DEL