Skip to content

Commit

Permalink
Reload WebviewArea on canvas change (#358)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kitenite committed Sep 16, 2024
1 parent 9b7b508 commit 30279eb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/src/routes/project/WebviewArea/index.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import { WebviewMessageBridge } from '@/lib/editor/messageBridge';
import { observer } from 'mobx-react-lite';
import { useEditorEngine } from '..';
import Frame from './Frame';
import Overlay from './Overlay';

function WebviewArea() {
const WebviewArea = observer(() => {
const editorEngine = useEditorEngine();
const messageBridge = new WebviewMessageBridge(editorEngine);

Expand All @@ -16,6 +17,6 @@ function WebviewArea() {
</div>
</Overlay>
);
}
});

export default WebviewArea;

0 comments on commit 30279eb

Please sign in to comment.