]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
chore: todos
authorEvan You <evan@vuejs.org>
Wed, 11 Dec 2024 06:33:16 +0000 (14:33 +0800)
committerEvan You <evan@vuejs.org>
Wed, 11 Dec 2024 06:33:16 +0000 (14:33 +0800)
packages/runtime-vapor/src/component.ts

index 06c7444145bd1af316c039f81cf9af00f3cae905..612916394ab94e8c0c09469b2c29b7b869431d94 100644 (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)