🎥 Make videos programmatically with React
Update wrap-in-schema.ts
Jonny Burger54e9266077de
diff --git a/packages/core/src/wrap-in-schema.ts b/packages/core/src/wrap-in-schema.tsindex 832e058430..164ba01845 100644--- a/packages/core/src/wrap-in-schema.ts+++ b/packages/core/src/wrap-in-schema.ts@@ -100,8 +100,7 @@ export const wrapInSchema = <S extends SequenceSchema, Props extends object>(return Component as unknown as React.ComponentType<Props>;}- // Schema is closure-stable for the life of this wrapped component,- // so flatten it once instead of on every render.+ // Schema is static for a component, so we move this outsideconst flatSchema = getFlatSchemaWithAllKeys(schema);const flatKeys = Object.keys(flatSchema);