pmndrs / react-three-fiber

🇨🇭 A React renderer for Three.js
https://docs.pmnd.rs/react-three-fiber
MIT License
27.62k stars 1.6k forks source link

THREE.WebGLRenderer context lost when I route to another page #3176

Closed harshharsha closed 8 months ago

harshharsha commented 9 months ago

Hi, 👋

when I route from main page to another page using react-router-dom it shows THREE.WebGLRenderer: Context Lost. How can I resolve this error?

CodyJasonBennett commented 8 months ago

This is not an error, but a status message from the WebGL canvas unmounting. If that is not what you want, then keep it mounted regardless of page transitions.