CartProviderProps
●cart · /react·interface
Props for . Wires the kernel snapshot, mutation handler, and optional optimistic predictors into the React context tree.
Properties
PROPTYPEDESCRIPTION
children
ReactNode
initialCart
kernelSnapshot
shopId
string
submitMutation
Example
const props: CartProviderProps<AppConfig> = {
kernelSnapshot,
submitMutation: submitCartMutation,
initialCart,
shopId: shop.id,
children: <App />,
};Related
CartDevtools CartFormProps AppCartConfig BaseCartActions BuyerIdentityActions CartActions CartAttributeActions CartPredictor
CartPredictor
A function that projects the entire cart after a pending mutation has been applied to the lines. Use it to recompute cartlevel aggregates — such as total quanti
CartProvider
Root context provider for the Nordcom cart. Manages the optimistic mutation queue, projects the cart for all slice hooks, synchronizes state with crosstab broad