diff --git a/packages/fiber/src/core/loop.ts b/packages/fiber/src/core/loop.ts index 065b35d223..6f9e3f1340 100644 --- a/packages/fiber/src/core/loop.ts +++ b/packages/fiber/src/core/loop.ts @@ -120,7 +120,7 @@ export function createLoop(roots: Map) { } function invalidate(state?: RootState, frames = 1): void { - if (!state) return roots.forEach((root) => invalidate(root.store.getState()), frames) + if (!state) return roots.forEach((root) => invalidate(root.store.getState(), frames)) if (state.gl.xr?.isPresenting || !state.internal.active || state.frameloop === 'never') return // Increase frames, do not go higher than 60 state.internal.frames = Math.min(60, state.internal.frames + frames)