stop double execute on project open (#997)

This commit is contained in:
Kurt Hutten
2023-11-06 14:33:19 +11:00
committed by GitHub
parent 34163da361
commit ca056996fd

View File

@ -26,10 +26,6 @@ export function useSetupEngineManager(
const hasSetNonZeroDimensions = useRef<boolean>(false)
useEffect(() => {
kclManager.executeCode()
}, [])
useLayoutEffect(() => {
// Load the engine command manager once with the initial width and height,
// then we do not want to reload it.