🎥 Make videos programmatically with React
use validate folder name
Jonny Burgere3cee5168cae
diff --git a/packages/core/src/Composition.tsx b/packages/core/src/Composition.tsxindex 424c9d272d..c9668f940f 100644--- a/packages/core/src/Composition.tsx+++ b/packages/core/src/Composition.tsx@@ -63,7 +63,7 @@ export const Composition = <T,>({const lazy = useLazyComponent(compProps);const nonce = useNonce();- const {folderName} = useContext(FolderContext)+ const {folderName} = useContext(FolderContext);useEffect(() => {// Ensure it's a URL safe id@@ -80,6 +80,9 @@ export const Composition = <T,>({durationInFrames,'of the <Composition/> component');+ if (folderName) {+ validateFolderName(folderName);+ }validateFps(fps, 'as a prop of the <Composition/> component');registerComposition<T>({durationInFrames,