You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
notice that no mesh is bound to the camera (hotpink cube)
change react, react-dom, react-three/fiber and react-three/drei to the according react 18 deps
run npm install again, clear the vite deps, and run npm run dev again
notice that the mesh is now visible and bound to the camera (hotpink cube)
The issue seems to be that when the container of createPortal changes, the children are still bound to the previous container, which only happens after the upgrade to react 19 (including the react-three/fiber and drei deps).
Let me know if I can help with anything :)
The text was updated successfully, but these errors were encountered:
Hey :)
An issue was reported to me that I identified to be a bug in react-three/fiber. I've created an reproduction repo here: https://github.com/bbohlender/r3f-portal-bug
Steps to reproduce
npm install
&npm run dev
npm install
again, clear the vite deps, and runnpm run dev
againThe issue seems to be that when the container of
createPortal
changes, the children are still bound to the previous container, which only happens after the upgrade to react 19 (including the react-three/fiber and drei deps).Let me know if I can help with anything :)
The text was updated successfully, but these errors were encountered: