reintroduce infoProvider.dispose();

We need to find another solution to avoid the unsubscribe error
pull/43/head
Alexander Bentkamp 2 years ago
parent 6c9ba14fd2
commit 3d349f9a6b

@ -280,7 +280,7 @@ function useLevelEditor(worldId: string, levelId: number, codeviewRef, initialCo
setInfoProvider(infoProvider)
setInfoviewApi(infoviewApi)
return () => { editor.setModel(null); editor.dispose() }
return () => { editor.setModel(null); infoProvider.dispose(); editor.dispose() }
}, [])
const {leanClient, leanClientStarted} = useLeanClient()

Loading…
Cancel
Save