Explorar o código

fix(apiInject): fix stringifying of symbol injection key (#383)

Dmitry Sharshakov %!s(int64=6) %!d(string=hai) anos
pai
achega
7394f7ec42
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      packages/runtime-core/src/apiInject.ts

+ 1 - 1
packages/runtime-core/src/apiInject.ts

@@ -39,7 +39,7 @@ export function inject(
     } else if (defaultValue !== undefined) {
       return defaultValue
     } else if (__DEV__) {
-      warn(`injection "${key}" not found.`)
+      warn(`injection "${String(key)}" not found.`)
     }
   } else if (__DEV__) {
     warn(`inject() can only be used inside setup().`)