PricingBlog

Web component stopped working this morning with globalThis.toddle.getCustomFormula error

  • elibeachy-1195033096811204670

    elibeachy

    2 years ago

    We have a web component that stopped working this morning. I've attached the error screen shot to this text.

    I keep a clean dev branch in the editor so I added a space to some text so I could publish from that branch and it solved the issue but now it's requiring users to do a hard refresh of their browser to get the updated component to show.

    1. What happened with that issue and how can we avoid it in the future? This component is the business so if the component breaks, we have major issues.
    2. How can we break the cache on a web component so it forces a new fetch?
    1195033096920252549-image.png
  • Tod-1195033099470393546

    Tod

    2 years ago

    Great energy @! Your continuous contribution to the toddle Community just made you advance to Community Level 2!
  • jacobkofoed-1195033692628852889

    Jacob Kofoed

    2 years ago

    Ill take a look at the error right away. Ill get back to you on caching
  • elibeachy-1195034774369206352

    elibeachy

    2 years ago

    Thank you
  • jacobkofoed-1195074682119016598

    Jacob Kofoed

    2 years ago

    Many sorry 😔 We released a fix to make sure these cache issues will not happen again 🫡 It should also immediately fix any need to hard-reload for your users. Please let me know if you are still experience any issues.
  • elibeachy-1195093302031171656

    elibeachy

    2 years ago

    Thanks @Jacob Kofoed but it still not working but now it's not working even with a hard refresh
  • lucasg-1195190760518189087

    Lucas G

    2 years ago

    I'm also experiencing the issue where a component isn't loading new data
  • elibeachy-1195367122772168724

    elibeachy

    2 years ago

    @Jacob Kofoed @Andreas Møller This is an urgent issue for us. It does still require a hard refresh on the users end and it keeps breaking. For instance, I just published another version with some inconsequential change so it would let me publish so that the web component would update on the users side. I've done this 4 times since yesterday and it will let people do a hard refresh and start working but if people don't do a hard refresh during some period of time it eventually stops fixing itself with hard refresh.
  • jacobkofoed-1195369432650874960

    Jacob Kofoed

    2 years ago

    Hi @ I wrote you a DM to get a little more information. Do you have a link or something we can use to see for ourselves. Its hard to debug as it seems to be a caching issue. We have introduced a few more changes today to better force cache updates, but it would be easier to test if we can see the problem ourselves.
  • jacobkofoed-1195373006239842336

    Jacob Kofoed

    2 years ago

    I would be happy to take a look together with you @ if you have the time?
  • @Lucas G do you still experience an issue as well? Can you share any info on what you're seeing?
  • elibeachy-1195388204002594866

    elibeachy

    2 years ago

    Sorry, Jacob, I didn't see the DM request. Just responded to you there.
    👍1
  • lucasg-1195822557010608240

    Lucas G

    2 years ago

    Sorry I missed this. Yes, I'm still seeing it on me end. I have a component that displays an array stored in a variable. When an object is added to the array, the component is not updating unless you refresh the page
  • When testing it in the editor, it works normally