Skip to content

Commit 288ae0a

Browse files
LinusBorgThorsten Luenborg
and
Thorsten Luenborg
authored
feat(runtime-core): improve render context warning (#2496)
Co-authored-by: Thorsten Luenborg <[email protected]>
1 parent 01fdbf4 commit 288ae0a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/runtime-core/src/componentPublicInstance.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ export const PublicInstanceProxyHandlers: ProxyHandler<any> = {
349349
)} must be accessed via $data because it starts with a reserved ` +
350350
`character ("$" or "_") and is not proxied on the render context.`
351351
)
352-
} else {
352+
} else if (instance === currentRenderingInstance) {
353353
warn(
354354
`Property ${JSON.stringify(key)} was accessed during render ` +
355355
`but is not defined on instance.`

0 commit comments

Comments
 (0)