Add creation commit handler to ViewportCanvas
This commit is contained in:
@@ -158,6 +158,10 @@ export function ViewportCanvas({
|
||||
});
|
||||
}, [onToolPreviewChange, panelId]);
|
||||
|
||||
useEffect(() => {
|
||||
hostRef.current?.setCreationCommitHandler(onCommitCreation);
|
||||
}, [onCommitCreation]);
|
||||
|
||||
useEffect(() => {
|
||||
hostRef.current?.setToolMode(toolMode);
|
||||
}, [toolMode]);
|
||||
|
||||
Reference in New Issue
Block a user