🎥 Make videos programmatically with React
should not have to resort to useEffect
JonnyBurger5e4015bbb134
diff --git a/packages/core/src/Artifact.tsx b/packages/core/src/Artifact.tsxindex b786d1da4a..e242987ec7 100644--- a/packages/core/src/Artifact.tsx+++ b/packages/core/src/Artifact.tsx@@ -1,5 +1,5 @@import type React from 'react';-import {useContext, useLayoutEffect, useState} from 'react';+import {useContext, useEffect, useState} from 'react';import {RenderAssetManager} from './RenderAssetManager';import type {DownloadBehavior} from './download-behavior';import {useCurrentFrame} from './use-current-frame';@@ -25,7 +25,7 @@ export const Artifact: React.FC<{return String(Math.random());});- useLayoutEffect(() => {+ useEffect(() => {if (!env.isRendering) {return;}