Add creation commit handler to ViewportCanvas

This commit is contained in:
2026-04-03 00:36:48 +02:00
parent 13c600441f
commit 7e610eaad4

View File

@@ -158,6 +158,10 @@ export function ViewportCanvas({
});
}, [onToolPreviewChange, panelId]);
useEffect(() => {
hostRef.current?.setCreationCommitHandler(onCommitCreation);
}, [onCommitCreation]);
useEffect(() => {
hostRef.current?.setToolMode(toolMode);
}, [toolMode]);