🎥 Make videos programmatically with React
wait one frame to be sure
Jonny Burger1a170bd0800a
diff --git a/packages/bundler/src/renderEntry.tsx b/packages/bundler/src/renderEntry.tsxindex a8b7696076..dc92f64d5e 100644--- a/packages/bundler/src/renderEntry.tsx+++ b/packages/bundler/src/renderEntry.tsx@@ -209,8 +209,14 @@ Internals.waitForRoot((Root) => {export const setBundleModeAndUpdate = (state: BundleState) => {setBundleMode(state);+ const delay = delayRender(+ 'Waiting for root component to load - See https://remotion.dev/docs/troubleshooting/loading-root-component if you experience a timeout',+ );Internals.waitForRoot((Root) => {renderContent(Root);+ requestAnimationFrame(() => {+ continueRender(delay);+ });});};