Initial commit

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01F22Ms5Cxam5UHyxaCrtZzu
This commit is contained in:
Rami Bitar
2026-07-29 11:02:40 -04:00
co-authored by Claude Fable 5
commit f23332e42c
88 changed files with 7947 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
import { createCartComponents } from "@shopify/hydrogen/react";
import type { cartHandlers } from "./cart-handlers";
/**
* React cart bindings derived from the cart server handlers' type. The
* `CartProvider` accepts the full handler data envelope (`{cart, errors?}`) as
* `initialData` — see `hydrogen-cart-ui` / `references/react.md`. Do not unwrap
* to `data.cart`: `{cart: null}` tells the client the server already checked.
*/
export const { CartProvider, useCart, useCartForm } = createCartComponents<typeof cartHandlers>();