Skip to content

🎥 Make videos programmatically with React

don't reset clipregion

Jonny Burgera517fbd7ca84
diff --git a/packages/core/src/NativeLayers.tsx b/packages/core/src/NativeLayers.tsx
index 0c32788d6d..2d51e2c0ca 100644
--- a/packages/core/src/NativeLayers.tsx
+++ b/packages/core/src/NativeLayers.tsx
@@ -37,7 +37,6 @@ export const NativeLayersProvider: React.FC<PropsWithChildren> = ({
useLayoutEffect(() => {
if (typeof window !== 'undefined') {
window.remotion_getClipRegion = () => {
- setClipRegion(null); // clear assets at next render
return clipRegion;
};
}