Skip to content

cdp_store_state

Read app store state (Redux, Zustand, 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 }

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