Skip to content

🎥 Make videos programmatically with React

fix input props

Jonny Burger7158cc8b253b
diff --git a/packages/bundler/src/renderEntry.tsx b/packages/bundler/src/renderEntry.tsx
index 1aabbe6994..d7da895fdf 100644
--- a/packages/bundler/src/renderEntry.tsx
+++ b/packages/bundler/src/renderEntry.tsx
@@ -37,8 +37,6 @@ const Fallback: React.FC = () => {
return null;
};
-const inputProps = getInputProps();
-
const GetVideo: React.FC<{state: BundleState}> = ({state}) => {
const video = Internals.useVideo();
const compositions = useContext(Internals.CompositionManager);
@@ -101,7 +99,10 @@ const GetVideo: React.FC<{state: BundleState}> = ({state}) => {
}}
>
{Component ? (
- <Component {...((video?.defaultProps as {}) ?? {})} {...inputProps} />
+ <Component
+ {...((video?.defaultProps as {}) ?? {})}
+ {...getInputProps()}
+ />
) : null}
</div>
</Suspense>