Functions
[usePriceSummary(props)] ⇒ [PriceSummaryTalonProps]
This talon contains logic for a price summary component. It performs effects and returns prop data for rendering the component.
This talon performs the following effects:
- Log a GraphQL error if it occurs when getting the price summary
Typedefs
[FlattenedData] : Object
Query data flattened into a simple object.
[PriceSummaryQueries] : Object
GraphQL queries for price summary component.
[PriceSummaryTalonProps] : Object
Props used for rendering a price summary component.
This talon contains logic for a price summary component. It performs effects and returns prop data for rendering the component.
This talon performs the following effects:
- Log a GraphQL error if it occurs when getting the price summary
Returns: Parameters
ObjectPriceSummaryQueriesExample (Importing into your project)
import { usePriceSummary } from '@magento/peregrine/lib/talons/CartPage/PriceSummary/usePriceSummary';
Query data flattened into a simple object.
Properties
StringStringArray.<Object>Array.<Object>Array.<Object>Array.<Object>Array.<Object>GraphQL queries for price summary component.
See: priceSummary.js for the queries used in Venia.
Properties
GraphQLASTProps used for rendering a price summary component.
Properties
functionfunction handleEnterKeyPress Callback function which navigates the browser to the checkout at the press of enter keybooleanbooleanbooleanFlattenedDataSource Code: pwa-studio/packages/peregrine/lib/talons/CartPage/PriceSummary/usePriceSummary.js