createProductData
createProductData(
commerce,options?):ProductData
The loader for a product address: reads the key from the route’s parameter, asks Commerce for that product and answers NotFound when Commerce has none, so the page draws
the host’s not-found. One load serves every section on the experience.
The key is untrusted input from the address: it is percent-encoded by the client into the request, never put into markup, and never taken as proof that a product exists.
Parameters
Section titled “Parameters”commerce
Section titled “commerce”CommerceClient
options?
Section titled “options?”ProductDataOptions = {}