From 2760a62d41d2b4f0c62c8cdc6600d882f6cd5b2c Mon Sep 17 00:00:00 2001 From: Balazs Bajorics <2226774+balazsbajorics@users.noreply.github.com> Date: Wed, 16 Oct 2024 15:20:35 +0200 Subject: [PATCH] mitigate blinking css due to utopia bug --- utopia/storyboard.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/utopia/storyboard.js b/utopia/storyboard.js index 848bdbb..fc807c3 100644 --- a/utopia/storyboard.js +++ b/utopia/storyboard.js @@ -3,6 +3,11 @@ import { Storyboard, RemixScene } from 'utopia-api' import { getLoadContext } from '../server-context-getter' +// this css is originally imported in root.jsx, but we have a bug which remounts the Remix scene and when that happens the css does not reload during interactions, leading to a white flash +// by also importing it here, we prevent the blinking. +// the real fix should be fixing the remount bug though +import '../app/styles/app-generated.css' + const contextGetter = getLoadContext( { PUBLIC_STORE_DOMAIN: '438c73-58.myshopify.com',