Functions
[useCartPage(props)] ⇒ [CartPageTalonProps]
This talon contains logic for a cart page component. It performs effects and returns prop data for rendering the component.
This talon performs the following effects:
- Manages the updating state of the cart while cart details data is being fetched
Typedefs
[CartPageQueries] : Object
GraphQL formatted string queries used in this talon.
[CartPageTalonProps] : Object
Props data to use when rendering a cart page component.
This talon contains logic for a cart page component. It performs effects and returns prop data for rendering the component.
This talon performs the following effects:
- Manages the updating state of the cart while cart details data is being fetched
Returns: Parameters
ObjectCartPageQueriesExample (Importing into your project)
import { useCartPage } from '@magento/peregrine/lib/talons/CartPage/useCartPage';
GraphQL formatted string queries used in this talon.
See: cartPage.gql.js for queries used in Venia
Properties
GraphQLASTProps data to use when rendering a cart page component.
Properties
Array.<Object>booleanbooleanfunctionbooleanSource Code: pwa-studio/packages/peregrine/lib/talons/CartPage/useCartPage.js