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 }
Parameters
Section titled “Parameters”| Name | Type | Required | Default | Constraints | Description |
|---|---|---|---|---|---|
path | string | No | Dot-path into store state (e.g. “cart.items”) | ||
storeType | `enum: redux | zustand | react-query` | No |
cdp_store_state()