🎥 Make videos programmatically with React
`remotion`: Prevent multiple compositions from being rendered
Jonny Burgera9208f49ded9
diff --git a/packages/core/src/Composition.tsx b/packages/core/src/Composition.tsxindex 8ce179392d..c183b2a35d 100644--- a/packages/core/src/Composition.tsx+++ b/packages/core/src/Composition.tsx@@ -235,7 +235,12 @@ const InnerComposition = <const resolved = useResolvedVideoConfig(id);- if (environment.isStudio && video && video.component === lazy) {+ if (+ environment.isStudio &&+ video &&+ video.component === lazy &&+ video.id === id+ ) {const Comp = lazy;if (resolved === null ||@@ -260,7 +265,12 @@ const InnerComposition = <);}- if (environment.isRendering && video && video.component === lazy) {+ if (+ environment.isRendering &&+ video &&+ video.component === lazy &&+ video.id === id+ ) {const Comp = lazy;if (resolved === null ||