chore: todos

This commit is contained in:
Evan You 2024-12-11 14:33:16 +08:00
parent 64e007eabe
commit e41858cde4
No known key found for this signature in database
GPG Key ID: 00E9AB7A6704CE0A
1 changed files with 2 additions and 0 deletions

View File

@ -139,6 +139,7 @@ export function createComponent(
): VaporComponentInstance {
// check if we are the single root of the parent
// if yes, inject parent attrs as dynamic props source
// TODO avoid child overwriting parent
if (
isSingleRoot &&
component.inheritAttrs !== false &&
@ -190,6 +191,7 @@ export function createComponent(
instance.block = []
} else {
instance.devtoolsRawSetupState = setupResult
// TODO make the proxy warn non-existent property access during dev
instance.setupState = proxyRefs(setupResult)
devRender(instance)