Jesse Baker commented on merge request !172 at project / canvas

This is the actual fix. editorFrameContext can be 'none' when the route first loads but before the ui slice has been updated when coming "back" from the code editor.

I'm not sure if this fix is a bit of "sticky-plaster". Why is this useEffect running before the editorFrameContext is set? Perhaps the <Preview /> component shouldn't even be rendered when the editorFrameContext is not one of "template" or "entity".