Don't set firstRender from within a routeLoader (#3311)

This commit is contained in:
Frank Noirot
2024-08-07 06:21:15 -04:00
committed by GitHub
parent dff3848a00
commit 4bfbecd3e7

View File

@ -106,10 +106,7 @@ export const fileLoader: LoaderFunction = async ({
codeManager.updateCodeStateEditor(code)
// We don't want to call await on execute code since we don't want to block the UI
kclManager.isFirstRender = true
kclManager.executeCode(true).then(() => {
kclManager.isFirstRender = false
})
kclManager.executeCode(true)
// Set the file system manager to the project path
// So that WASM gets an updated path for operations