Skip to content

cdp_store_state

Read app store state (Redux, Zustand, Jotai, React Query). Use path to query specific slice (e.g. “cart.items”, “auth.user.name”). Use storeType to target a specific store when multiple exist. Redux auto-detected via fiber Provider. Zustand requires: if (DEV) global.ZUSTAND_STORES = { store }. Jotai requires: if (DEV) { global.JOTAI_STORE = store; global.JOTAI_ATOMS = { name: atom } }

NameTypeRequiredDefaultConstraintsDescription
pathstringNoDot-path into store state (e.g. “cart.items”)
storeType`enum: reduxzustandjotaireact-query`No
cdp_store_state()