fix repair game suspense boundaries

This commit is contained in:
Tom Boullay
2026-05-11 11:37:54 +02:00
parent f9a6390260
commit e16d6e15fa
2 changed files with 54 additions and 51 deletions
+3 -2
View File
@@ -1,3 +1,4 @@
import { Suspense } from "react";
import { Physics } from "@react-three/rapier";
import {
PLAYER_SPAWN_POSITION_GAME,
@@ -43,10 +44,10 @@ export function World({ onLoadingStateChange }: WorldProps): React.JSX.Element {
<Lighting />
<DebugHelpers />
{showHandTrackingGloves ? (
<>
<Suspense fallback={null}>
<HandTrackingGlove handedness="left" />
<HandTrackingGlove handedness="right" />
</>
</Suspense>
) : null}
{cameraMode === "debug" ? <DebugCameraControls /> : null}
{sceneMode === "game" ? (