Viewport values sometimes return 0 #1131
-
Hi all, I'm getting viewport values of 0 (width, height, distance) when switching cameras (using drei's PerspectiveCamera). Not sure where to look to fix this, is this because the component gets rendered with a frame while the viewport temporarily has no camera? Is this supposed to happen and should I deal with blocking the component from rendering, or is this a bug? (R3F 5.3.21) |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Could you make a reproduction in codesandbox? |
Beta Was this translation helpful? Give feedback.
-
Not sure what changed, but I get correct values using v6 of r3f and newest drei. Closing this. |
Beta Was this translation helpful? Give feedback.
Not sure what changed, but I get correct values using v6 of r3f and newest drei. Closing this.