CartDevtools
●cart · /react·component
Development-only overlay that renders a toggleable JSON dump of cart
provider state. Returns null in production builds so bundlers can
tree-shake the panel completely.
Signature
function CartDevtools(): Element;Returns
A fixed-position devtools panel in development; null in production.
Example
// Mount alongside <CartProvider> during local development.
<CartProvider {...cartProps}>
{children}
<CartDevtools />
</CartProvider>Related
CartFormProps CartProviderProps AppCartConfig BaseCartActions BuyerIdentityActions CartActions CartAttributeActions CartPredictor
Sourcedevtools-panel.tsxsrc/devtools-panel.tsxreact/src/devtools-panel.tsx:21↗Edit the JSDoc directly
CartAttributeActions
Cartattribute mutation method added to when CartCapabilities.cartAttributes is true. Replaces all cart attributes atomically with the supplied keyvalue pairs.
CartFormProps
Props for . Each field maps to a hidden <input the cart server action reads from FormData; only action, formAction, and children are required for every mutation