From 5fa5912245564a4ae43f05d3bee9e13904bbe375 Mon Sep 17 00:00:00 2001 From: max-nextcloud Date: Fri, 22 Aug 2025 10:06:50 +0200 Subject: [PATCH] Factory functions for default values are optional There's no more error and types also allow for directly passing objects as the default value. --- src/guide/components/props.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/guide/components/props.md b/src/guide/components/props.md index ef9d58554c..8ef0aa9c61 100644 --- a/src/guide/components/props.md +++ b/src/guide/components/props.md @@ -467,7 +467,7 @@ defineProps({ // Object with a default value propF: { type: Object, - // Object or array defaults must be returned from + // Object or array defaults can be returned from // a factory function. The function receives the raw // props received by the component as the argument. default(rawProps) {