remove _deffer (#3114)

* remove _deffer

Signed-off-by: Paul Tagliamonte <paul@zoo.dev>
This commit is contained in:
Paul Tagliamonte
2024-07-23 20:37:04 -04:00
committed by GitHub
parent a68748abcf
commit 22df47fa96
10 changed files with 11 additions and 33 deletions

View File

@ -177,7 +177,7 @@ const FileTreeItem = ({
codeManager.writeToFile()
kclManager.isFirstRender = true
kclManager.executeCode(true, true).then(() => {
kclManager.executeCode(true).then(() => {
kclManager.isFirstRender = false
})
} else {

View File

@ -175,7 +175,7 @@ export const ModelingMachineProvider = ({
}
store.videoElement?.pause()
kclManager.executeCode(true).then(() => {
kclManager.executeCode().then(() => {
if (engineCommandManager.engineConnection?.idleMode) return
store.videoElement?.play()

View File

@ -66,7 +66,7 @@ export const KclEditorPane = () => {
useEffect(() => {
if (typeof window === 'undefined') return
const onlineCallback = () => kclManager.executeCode(true, true)
const onlineCallback = () => kclManager.executeCode(true)
window.addEventListener('online', onlineCallback)
return () => window.removeEventListener('online', onlineCallback)
}, [])

View File

@ -177,7 +177,7 @@ export const SettingsAuthProviderBase = ({
},
'Execute AST': () => {
kclManager.isFirstRender = true
kclManager.executeCode(true, true).then(() => {
kclManager.executeCode(true).then(() => {
kclManager.isFirstRender = false
})
},