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
Hey everyone! I'm a bit new to this, so I apologize if I am missing something obvious (which is likely the case). So I started with react-three-fiber version 5.2.1, but when I go to upgrade it, one of my components stops appearing on the screen. Everything else works fine other than this one component. In order to track where the problem starts, I started to upgrade incrementally and it appears to start at the very next version of 5.3.0. For this code, I am using react 17.0.1, drei, jotai, r3f, and @react-three/cannon.
The problem code in question starts here where I create some dice using some state variables which are also shown here:
When I run the code, no errors are shown in the console. My best guess is that it is stuck in suspense for some reason that is a bit beyond me. I checked the changelogs and I am thinking it might have something to do with the upgrade of use-asset, but that is just a guess.
Any ideas where I might be going wrong here? I'm a bit stumped. If I revert the r3f version back to 5.2.1, it works fine. The only time I can fish an error out of it is if I use the drie progress bar as the fallback for the suspense. When I do, I get the following error:
Cannot update a component (progress bar) while rendering a different component (ThemedDie)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey everyone! I'm a bit new to this, so I apologize if I am missing something obvious (which is likely the case). So I started with react-three-fiber version 5.2.1, but when I go to upgrade it, one of my components stops appearing on the screen. Everything else works fine other than this one component. In order to track where the problem starts, I started to upgrade incrementally and it appears to start at the very next version of 5.3.0. For this code, I am using react 17.0.1, drei, jotai, r3f, and @react-three/cannon.
The problem code in question starts here where I create some dice using some state variables which are also shown here:
The following is the ThemedDie component:
and this is the state info it is using from jotai:
When I run the code, no errors are shown in the console. My best guess is that it is stuck in suspense for some reason that is a bit beyond me. I checked the changelogs and I am thinking it might have something to do with the upgrade of use-asset, but that is just a guess.
Any ideas where I might be going wrong here? I'm a bit stumped. If I revert the r3f version back to 5.2.1, it works fine. The only time I can fish an error out of it is if I use the drie progress bar as the fallback for the suspense. When I do, I get the following error:
Cannot update a component (progress bar) while rendering a different component (ThemedDie)
Thanks in advance for your time!
Beta Was this translation helpful? Give feedback.
All reactions