DaffProductCompositeRoutingConfig

An interface for providing `@daffodil/product-composite/routing` with necessary config values.

Properties

Name Type Description
compositeSelectionQueryParam string The name of the query param for which a composite product page preselection can be defined. The value of this query param should be a DaffProductCompositeSelectionPayload after being base64 decoded and JSON parsed. Defaults to `composite_selection`.
compositeSelectionQueryParamDecode (queryParam: string, product: DaffCompositeProduct) => DaffProductCompositeSelectionPayload The function used to decode the value of the DaffProductCompositeStateConfig into a DaffProductCompositeSelectionPayload. Defaults to `(queryParam: string) => JSON.parse(atob(queryParam))`.
Graycore, LLC © 2018 - 2024. Code licensed under an MIT-style License. Documentation licensed under CC BY 4.0.