@shopify/hydrogen@2024.10.1
shopify-github-actions-access
released this
11 Dec 17:13
·
36 commits
to main
since this release
Patch Changes
-
Added namespace support to prevent conflicts when using multiple Pagination components: (#2649) by @scottdixon
- New optional
namespace
prop for the<Pagination/>
component - New optional
namespace
option forgetPaginationVariables()
utility - When specified, pagination URL parameters are prefixed with the namespace (e.g.,
products_cursor
instead ofcursor
) - Maintains backwards compatibility when no namespace is provided
- New optional
-
Introduce
getProductOptions
,getAdjacentAndFirstAvailableVariants
,useSelectedOptionInUrlParam
, andmapSelectedProductOptionToObject
to support combined listing products and products with 2000 variants limit. (#2659) by @wizardlyhel -
Add params to override the login and authorize paths: (#2648) by @blittle
const hydrogenContext = createHydrogenContext({ // ... customerAccount: { loginPath = '/account/login', authorizePath = '/account/authorize', defaultRedirectPath = '/account', }, });
-
Add
selectedVariant
prop to theVariantSelector
to use for the initial state if no URL parameters are set (#2643) by @scottdixon -
Updated dependencies [
a57d5267
]:- @shopify/hydrogen-react@2024.10.1