I am using react-babylonjs, and everything seems to show normaly but I get this error and canvas just freezes:
A component suspended while responding to synchronous input. This will cause the UI to be replaced with a loading indicator. To fix, updates that suspend should be wrapped with startTransition.
The above error occurred in the Ig component:
I tried adding suspense and startTransition but nothing worked, the same error still occurs.
This is the simple code:
<Engine>
<Scene id="sample-canvas">
<arcRotateCamera name="camera1"
alpha={Math.PI / -2} beta={Math.PI / 2}
radius={0.05} target={Vector3.Zero()} minZ={0.001} />
<hemisphericLight name="light1" intensity={0.7}
direction={Vector3.Up()} />
<Model sceneFilename="Avocado.gltf"
rootUrl = {`${baseUrl}Avocado/glTF/`}
position = { new Vector3(-0.02, this.state.avocadoYPos, 0) }
scaling={new Vector3(this.state.avocadoScaling,
this.state.avocadoScaling, this.state.avocadoScaling)}
/>
</Scene>
</Engine>