]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
chore: todo
authorEvan You <yyx990803@gmail.com>
Wed, 19 Jun 2019 14:50:14 +0000 (22:50 +0800)
committerEvan You <yyx990803@gmail.com>
Wed, 19 Jun 2019 14:50:14 +0000 (22:50 +0800)
packages/runtime-core/src/apiInject.ts

index 3e266b36e971983e246a139258e32f2ff6a3f0af..79121ec2fdffef78e42c6f609cf8c53d310c3042 100644 (file)
@@ -26,6 +26,7 @@ export function inject<T>(key: Key<T>): Value<T> | undefined {
   if (!currentInstance) {
     // TODO warn
   } else {
+    // TODO should also check for app-level provides
     const provides = currentInstance.parent && currentInstance.provides
     if (provides) {
       const val = provides[key as any]