I can’t seem to ‘close’ a viewer instance.
Whenever I call ‘close()’, the promise is not being resolved.
Example code:
globalThis.session?.close().then(() => {
console.log("Session closed? This will be logged!")
globalThis.viewer?.close().then(() => {
console.log("This will never be logged")
})
})
The ‘closed session’ will be logged, but still it sometimes happens that the old scene remains in place and overlaps with the newly loaded scene.
Any help would be appreciated.