Beta 1 - Switching between Header and Layout builders, preview reverts to prior saved version

I feel like a variation of this might have been reported already, but I couldn’t quickly find it.

Here’s a repro for the scenario I’m now seeing:

  1. Open a header
  2. Make some changes (e.g. delete an element, change a color, etc.)
  3. Save this “new” version
  4. Using the hamburger menu, switch to a Layout
  5. Make some changes to this layout… or don’t (doesn’t really seem to matter)
  6. Using the hamburger menu, switch back to the Header you had just saved

When the builder loads again, it will load the “old” version prior to what you just saved. If you visit the live site, it will look like it should (meaning, the “new” version did properly save). However, if you now make any changes to the “old” version you’re seeing in the builder, it will overwrite the “new” version you had just saved. (Boy, what a description :rofl:)

I’m wondering if this is due to the optimizations you’ve turned off for this build…

Thanks! That actually sounds like a cache not getting cleared when the entity is updated. The performance optimizations we disabled are all in the preview frame and have to do with how elements are rendered.

In this release we completely dropped Ember and had to replace our data management layer with something else. We’re using React Query now, which has some caching capabilities. It’s useful if you quickly navigate back and forth between pages without saving because it doesn’t have to keep fetching them. However, it should definitely not serve stale versions. Will let you know here when it’s resolved.