Skip to content

selectionFromQuery

selectionFromQuery(product, query): Selection | undefined

A selection read from the address (?size=41): only axes and values the product has, matched without regard to case. Anything else is dropped.

Pick<Product, "axes" | "variants">

URLSearchParams

Selection | undefined