Skip to content

🎥 Make videos programmatically with React

it's more correct to use `<FiberFrameInvalidator>` in overridden Remotion context

Igor Samokhovets900d22e28699
diff --git a/packages/three/src/ThreeCanvas.tsx b/packages/three/src/ThreeCanvas.tsx
index f9c46e1caf..e6268e364d 100644
--- a/packages/three/src/ThreeCanvas.tsx
+++ b/packages/three/src/ThreeCanvas.tsx
@@ -86,9 +86,9 @@ export const ThreeCanvas = (props: ThreeCanvasProps) => {
frameloop={shouldUseFrameloopDemand ? 'demand' : 'always'}
onCreated={remotion_onCreated}
>
- {shouldUseFrameloopDemand && <FiberFrameInvalidator />}
<Scale width={width} height={height} />
<Internals.RemotionContextProvider contexts={contexts}>
+ {shouldUseFrameloopDemand && <FiberFrameInvalidator />}
{children}
</Internals.RemotionContextProvider>
</Canvas>