Skip to content

Commit c2ff3bd

Browse files
committed
chore: fix compat props default test
1 parent ab6f75d commit c2ff3bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/runtime-core/src/componentProps.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ export function initProps(
201201
isStateful: number, // result of bitwise flag comparison
202202
isSSR = false,
203203
): void {
204-
const props: Data = {}
204+
const props: Data = (instance.props = {})
205205
const attrs: Data = createInternalObject()
206206

207207
instance.propsDefaults = Object.create(null)

0 commit comments

Comments
 (0)