From: Evan You Date: Wed, 19 Jun 2019 14:50:14 +0000 (+0800) Subject: chore: todo X-Git-Tag: v3.0.0-alpha.0~934 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8eb20eede9d70f088b07cf5dcb1baa0600696a54;p=thirdparty%2Fvuejs%2Fcore.git chore: todo --- diff --git a/packages/runtime-core/src/apiInject.ts b/packages/runtime-core/src/apiInject.ts index 3e266b36e9..79121ec2fd 100644 --- a/packages/runtime-core/src/apiInject.ts +++ b/packages/runtime-core/src/apiInject.ts @@ -26,6 +26,7 @@ export function inject(key: Key): Value | 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]