CartHydrator
●cart · /react·component
Server-renderable entry point that seeds the client-side cart hydration marker. Delegates to a client component that renders a hidden element carrying the initial cart id and shop id, so the client layer can bootstrap without an extra network round-trip.
Signature
function CartHydrator(__namedParameters: { initialCart: Cart; shopId: string }): Element;Parameters
| Name | Type | Description |
|---|---|---|
__namedParameters | { initialCart: Cart; shopId: string } |
Returns
A element.
Example
<CartHydrator initialCart={serverCart} shopId={shop.id} />Related
CartDevtools CartFormProps CartProviderProps AppCartConfig BaseCartActions BuyerIdentityActions CartActions CartAttributeActions
CartForm
Renders a <form that encodes a cart mutation as hidden inputs consumed by a cart server action. Pass action to identify the mutation kind and supply the relevan
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