Reference
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 } }
Parameters
Section titled “Parameters”| Name | Type | Required | Default | Constraints | Description |
|---|---|---|---|---|---|
path | string | No | Dot-path into store state (e.g. “cart.items”) | ||
storeType | unknown | No | Target a specific store type. Useful when app has both Redux and React Query. |
cdp_store_state()