useStackfront() | Context value | Access every service, config, and lifecycle state |
useProducts() | Product[] | Paginated product listing |
useProduct(options) | Product detail + variant state | Single product by handle (legacy useProduct(handle) still works) |
useVariantSelector(product) | Selection state/handlers | Variant resolution from selected options |
useCartQuantity(options) | Quantity state | Clamped line quantity for a product screen |
useSearch(options?) | Search state | Debounced full-text search, history, suggestions (legacy search() kept) |
useCollections() | Collection[] | Collection listing |
useCollection(handle) | Collection | null | Single collection with products |
useCart() | Cart | null | Current cart with line mutations |
useCheckout() | Checkout session | Create/open/restore/refresh the hosted checkout session |
useCustomer() | Customer | null | Logged-in customer profile |
useOrders(options?) | Order[] | Customer order history (flat or paged) |
useInfiniteOrders(options?) | Infinite query | Cursor-paginated orders |
useOrder(id) | Order | null | One order, cache-first |
useOrderHistory(options?) | Paged list | One page with explicit onLoadMore() |
useOrderTracking(order) | Tracking info | Derived shipment tracking |
usePrefetchOrders() | Prefetch fn | Warm the order cache before navigating |
usePendingOrders() | Order[] | Pending bucket (shared cache) |
useCompletedOrders() | Order[] | Completed bucket (shared cache) |
useCancelledOrders() | Order[] | Cancelled bucket (shared cache) |
useAddresses() | Address book + mutations | List, create, update, delete, set default |
useAddress(id) | CustomerAddress | null | One address from the shared cache |
useDefaultAddress() | CustomerAddress | null | The customer’s default mailing address |
useMenu(handle) | { menu, nodes } | One navigation menu |
useMenus(handles) | Record<handle, menu> | Several menus in one aliased request |
usePrefetchMenu() | Prefetch fn | Warm a menu before opening the drawer |
usePush() | { permission, preferences, … } | Push notification permission and preference state |
useConfig() | SdkConfigResponse | Remote SDK configuration |
useFeatureFlags() | FeatureFlag[] | Remote feature flags |
useBanners() | Banner[] | Active banners |
useAnnouncements() | Announcement[] | Announcement bar config |
usePopups() | Popup[] | Popup/overlay config |
useStories() | Story[] | Story/collection highlights |
useSocialProof() | SocialProof[] | Live social proof (deprecated — use useConversionSignals) |
useConversionSignals(productId) | { signals, isLoading, error, refetch, reportView } | Normalized conversion signals (live viewer count, recent purchase, low stock) |
useWishlist() | Wishlist state | Variant-aware local wishlist with mutations |
useBilling() | BillingStatus | App subscription/billing info |
useIntegrations() | Integration[] | Third-party integration status |
useAbandonedCart() | { enabled, optedIn, optIn, optOut } | Abandoned cart notification opt-in state and controls |