Skip to content

THREE.WebGLRenderer: Context Lost. #1151

Answered by drcmda
maxwellhankner asked this question in Q&A
Discussion options

You must be logged in to vote

when a canvas unmounts it's literally forcing a context loss. that's standard practice because otherwise it would be a memory leak. you can of course route your canvas, you can even have routes in your actual scene. if the canvas stays put between route changes, then do not unmount the canvas but route the contents: https://twitter.com/0xca0a/status/1322897740435759107

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@maxwellhankner
Comment options

Answer selected by maxwellhankner
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants