diff --git a/src/utils/live-reload/useRealtimeComponent.ts b/src/utils/live-reload/useRealtimeComponent.ts index e8dce15..a4c1517 100644 --- a/src/utils/live-reload/useRealtimeComponent.ts +++ b/src/utils/live-reload/useRealtimeComponent.ts @@ -2,7 +2,9 @@ import * as React from "react"; import { initLiveReload } from "./bootstrap"; import { RenderTarget } from "framer"; -export const isDev = [RenderTarget.canvas].includes(RenderTarget.current()); +export const isDev = [RenderTarget.canvas, RenderTarget.preview].includes( + RenderTarget.current() +); export function useRealtimeComponent( originalComponent: React.ComponentType,