Skip to content

Commit

Permalink
feat(runtime-core): improve render context warning (#2496)
Browse files Browse the repository at this point in the history
Co-authored-by: Thorsten Luenborg <[email protected]>
  • Loading branch information
LinusBorg and Thorsten Luenborg authored Feb 5, 2021
1 parent 01fdbf4 commit 288ae0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/runtime-core/src/componentPublicInstance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ export const PublicInstanceProxyHandlers: ProxyHandler<any> = {
)} must be accessed via $data because it starts with a reserved ` +
`character ("$" or "_") and is not proxied on the render context.`
)
} else {
} else if (instance === currentRenderingInstance) {
warn(
`Property ${JSON.stringify(key)} was accessed during render ` +
`but is not defined on instance.`
Expand Down

0 comments on commit 288ae0a

Please sign in to comment.