SalesforceCommerceCloud / pwa-kit

React-based JavaScript frontend framework to create a progressive web app (PWA) storefront for Salesforce B2C Commerce.
https://developer.salesforce.com/docs/commerce/pwa-kit-managed-runtime/guide/pwa-kit-overview.html
BSD 3-Clause "New" or "Revised" License
283 stars 130 forks source link

V3 Storefront Preview add siteId query parameter to shopper context calls (@W-15976653@) #1874

Closed adamraya closed 3 months ago

adamraya commented 3 months ago

Description

The PR adds the siteId defined in CommerceSdkProvider to the window.STOREFRONT_PREVIEW global for later use in the Storefront Preview Shopper Context Calls.

Types of Changes

Breaking changes include:

  • Removing a public function or component or prop
  • Adding a required argument to a function
  • Changing the data type of a function parameter or return value
  • Adding a new peer dependency to package.json

Changes

How to Test-Drive This PR

Checklists

General

Accessibility Compliance

You must check off all items in one of the follow two lists:

or...

Localization