Web component stopped working this morning with globalThis.toddle.getCustomFormula error
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?
Tod
2 years ago
Great energy @! Your continuous contribution to the toddle Community just made you advance to Community Level 2!
Ill take a look at the error right away. Ill get back to you on caching
elibeachy
2 years ago
Thank you
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
2 years ago
Thanks @Jacob Kofoed but it still not working but now it's not working even with a hard refresh
Lucas G
2 years ago
I'm also experiencing the issue where a component isn't loading new data
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.
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.
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
2 years ago
Sorry, Jacob, I didn't see the DM request. Just responded to you there.
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