Hey there,
shopify app dev allows you to hot reload and test your Checkout UI Extension with a solid feedback loop of code changes → the sample checkout (through the dev preview).
However, I’ve noticed that it automatically selects a single product The Videographer Snowboard and this isn’t editable. When you leave the checkout and come back, you leave the session.
Effectively, if your checkout UI extension needs to test different products, it’s not possible without using shopify app deploy against your dev store and wait for the cache bust.
As a user I’ve tried:
- starting
shopify app dev - Initiate a test checkout from the preview (cmd + p, selecting the checkout block)
- Observe the
Videographer Snowboardis in the cart at checkout - Return to the storefront clicking the link in the top left navbar
- Add an item to the cart
- Return to checkout
- Observe the checkout UI extension no longer mounts