Shopify / cli

Build apps, themes, and hydrogen storefronts for Shopify
https://shopify.dev
MIT License
436 stars 128 forks source link

Fix hot reload on sections #4544

Closed montalvomiguelo closed 1 month ago

montalvomiguelo commented 1 month ago

WHY are these changes introduced?

Fixes #4534

WHAT is this pull request doing?

Refreshes the page if the section is not in sectionsToUpdate, like before.

How to test your changes?

Serve a theme, add a new section, and then modify its content. The page should reload as expected.

https://github.com/user-attachments/assets/751c4884-26a6-4d19-b4f4-2b2c20da8f6a

cc @karreiro

Post-release steps

Measuring impact

How do we know this change was effective? Please choose one:

Checklist