remove infoprovider.dispose()

The issue is that this removes the server notification subscriptions and then we get an error because react executes the cleanup of child components only after cleanup of parent components
This commit is contained in:
Alexander Bentkamp
2023-01-24 17:17:25 +01:00
parent f2dc99ff35
commit f4ac6ef7fb
+1 -1
View File
@@ -280,7 +280,7 @@ function useLevelEditor(worldId: string, levelId: number, codeviewRef, initialCo
setInfoProvider(infoProvider)
setInfoviewApi(infoviewApi)
return () => { editor.setModel(null); infoProvider.dispose(); editor.dispose() }
return () => { editor.setModel(null); editor.dispose() }
}, [])
const {leanClient, leanClientStarted} = useLeanClient()