reintroduce infoProvider.dispose();
We need to find another solution to avoid the unsubscribe error
This commit is contained in:
@@ -280,7 +280,7 @@ function useLevelEditor(worldId: string, levelId: number, codeviewRef, initialCo
|
|||||||
setInfoProvider(infoProvider)
|
setInfoProvider(infoProvider)
|
||||||
setInfoviewApi(infoviewApi)
|
setInfoviewApi(infoviewApi)
|
||||||
|
|
||||||
return () => { editor.setModel(null); editor.dispose() }
|
return () => { editor.setModel(null); infoProvider.dispose(); editor.dispose() }
|
||||||
}, [])
|
}, [])
|
||||||
|
|
||||||
const {leanClient, leanClientStarted} = useLeanClient()
|
const {leanClient, leanClientStarted} = useLeanClient()
|
||||||
|
|||||||
Reference in New Issue
Block a user