From c2ff3bd564e99f644aee36fb70f086ca2396a28f Mon Sep 17 00:00:00 2001 From: Evan You Date: Tue, 10 Dec 2024 08:11:36 +0800 Subject: [PATCH] chore: fix compat props default test --- packages/runtime-core/src/componentProps.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/runtime-core/src/componentProps.ts b/packages/runtime-core/src/componentProps.ts index fbc4ca5bf..bc9f537cf 100644 --- a/packages/runtime-core/src/componentProps.ts +++ b/packages/runtime-core/src/componentProps.ts @@ -201,7 +201,7 @@ export function initProps( isStateful: number, // result of bitwise flag comparison isSSR = false, ): void { - const props: Data = {} + const props: Data = (instance.props = {}) const attrs: Data = createInternalObject() instance.propsDefaults = Object.create(null)