-
-
Notifications
You must be signed in to change notification settings - Fork 206
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Route changes cause app to crash until page is refreshed #230
Comments
Hi, it looks like the |
Hello, Thank you for your fast response! I created a demo sandbox to illustrate the issue: demo Thanks again for your help. |
In that case it's related to
|
Closing this since there is no clear indication of a bug in If you wish to keep this issue open as a potential bug in |
Description of the bug
Route changes (e.g. when using react-router or wouter) frequently result in pages becoming unresponsive. However, the pages load successfully once refreshing the page. When this occurs, the following error is logged in the console:
Uncaught TypeError: renderer.getClearAlpha is not a function
at ClearPass.render (postprocessing.esm.js:3225)
at RenderPass.render (postprocessing.esm.js:3660)
at EffectComposer.render (postprocessing.esm.js:6271)
at Object.current (index.js:1)
at Mb (web.js:157)
at web.js:158
at Map.forEach ()
at Ec (web.js:158)
I think this issue is related to the order of events when creating a canvas. Pages will load successfully after removing EffectComposer (imported via @react-three/postprocessing) from each scene. I posted the issue here because the error log points to this library, but I'm not certain if the root cause of the issue actually exists within this library, react-three-fiber or @react-three/postprocessing.
Library versions used
"react": "^17.0.0"
"three": "^0.121.1"
"react-three-fiber": "^5.1.3"
"@react-three/postprocessing": "^1.4.1"
The text was updated successfully, but these errors were encountered: