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
pull/43/head
Alexander Bentkamp 2 years ago
parent f2dc99ff35
commit f4ac6ef7fb

@ -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()

Loading…
Cancel
Save