I am creating a theme and trying to utilize the {{ theme }} variables I set in modules. I have a much more complicated module, however, I've boiled it down to this simple code:
HubSpot has confirmed this is a bug. I have a support ticket open and our partner account manager has escalated to the correct team. I will update this ticket as and when I know more.
Thanks for taking the time to respond, however, not sure how that link helps in any way? Is there a specific section of that article that highlights something related to my query?
For an update. I've just tried using the "inherited_value" field as well. So, for example, I've created a module-level "animation.easing" field and set its "inherited_value" to the theme's "theme.global.animations.easing" value.
Again, upon page load, this pulls the theme value correctly but when you change any setting and the module re-renders, the theme value is lost and it falls back to the fields default value.
This is really frustrating and sure must be a bug?