Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
ruucm committed Sep 14, 2024
1 parent 09b5613 commit db5619a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/utils/live-reload/useRealtimeComponent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit db5619a

Please sign in to comment.