We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c3ca1e1 commit 5966de0Copy full SHA for 5966de0
1 file changed
packages/component/src/Utils/parseProps.ts
@@ -8,6 +8,7 @@ export default function parseProps<const TSchema extends BaseSchema<unknown, unk
8
return props as unknown as InferOutput<TSchema>;
9
}
10
11
+ // TODO: Default to `safeParse` unless the component is explicitly okay with strict, which clone the prop.
12
try {
13
return parse(propsSchema, props);
14
} catch (error) {
0 commit comments