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
Maybe this was a deliberate decision that I haven't been able to dig up (or I misunderstood) in the changelog, but upgrading to v9 caused a strange issue in my codebase: my tests that use @react-three/test-renderer started failing with the following error:
'TypeError: Cannot assign to read only property \'position\' of object \'#<Group>\'\n at applyProps
I was baffled by this for a few hours since it seemed like position shouldn't be read-only.. Then eventually discovered that in this (simplified) case:
If this is deliberate, I guess I just have to find all the places I directly apply a Vector3, a Quaternion, etc. into the ports of R3F JSX elements and break them out into these arrays, but it seems odd to me that the library wouldn't support this.
The text was updated successfully, but these errors were encountered:
Maybe this was a deliberate decision that I haven't been able to dig up (or I misunderstood) in the changelog, but upgrading to v9 caused a strange issue in my codebase: my tests that use
@react-three/test-renderer
started failing with the following error:I was baffled by this for a few hours since it seemed like
position
shouldn't be read-only.. Then eventually discovered that in this (simplified) case:I got the error, but in this case:
I did not get the error.
If this is deliberate, I guess I just have to find all the places I directly apply a
Vector3
, aQuaternion
, etc. into the ports of R3F JSX elements and break them out into these arrays, but it seems odd to me that the library wouldn't support this.The text was updated successfully, but these errors were encountered: