Closed dev6Minded closed 1 month ago
Hey there thanks for reporting! This is a problem we're aware of internally and is actually a symptom of a broader issue we're trying to solve around the friction between local rendering of themes & modules in pages and the content that's set for them in the different editors. As-is, we're forced to make a trade-off here between either making changes to global modules within a theme visible when locally rendered (how it is currently), or having that global content shown within the local renders (which would block local changes from showing through). So this is a somewhat intentional choice to preserve the ability to make and preview changes to a theme's global modules while we work toward a better solution that covers both use cases.
Unfortunately that means it may be a bit of time before this works the way you would expect, but it's something that's definitely on our radar and we intend to support more fully down the road. For now I'll close this out, but link it in our internal issue tracking for this project to keep a record of the interest for this feature. Thanks again for filing an issue! 😄
Description and Context
I noticed an issue with the "hs theme preview", when I up and run the example page which contains the global module (with modified settings in the global editor) - the data is missing - it looks like HS doesn't fetch the data but instead serves the ones defined from the fileds.json file (Created discussion https://community.hubspot.com/t5/CMS-Development/HS-Theme-Preview-Global-Module-Issue/td-p/1025021)
The most interesting thing is that when I use a global partial containing non-global modules (but HS treats them as global), everything works fine and I can see the updated data.
CLI: 5.2.0
In local mode, I'm not able to see data set up in step 6
Expected behavior
I want to see the changes that were made
Screenshots
Page preview (normal and local):