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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user