Evan You пре 1 година
родитељ
комит
e41858cde4
1 измењених фајлова са 2 додато и 0 уклоњено
  1. 2 0
      packages/runtime-vapor/src/component.ts

+ 2 - 0
packages/runtime-vapor/src/component.ts

@@ -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)