]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
fix: add display name for suspense component (#3312)
authorCédric Exbrayat <cexbrayat@users.noreply.github.com>
Tue, 23 Mar 2021 09:17:15 +0000 (10:17 +0100)
committerGitHub <noreply@github.com>
Tue, 23 Mar 2021 09:17:15 +0000 (10:17 +0100)
packages/runtime-core/src/components/Suspense.ts

index 0ec78125b20566b8f480a13d74ab6c2965765b44..7510d78710ac33b0f80333b187538da757c87c0f 100644 (file)
@@ -33,6 +33,7 @@ export const isSuspense = (type: any): boolean => type.__isSuspense
 // in the compiler, but internally it's a special built-in type that hooks
 // directly into the renderer.
 export const SuspenseImpl = {
+  name: 'Suspense',
   // In order to make Suspense tree-shakable, we need to avoid importing it
   // directly in the renderer. The renderer checks for the __isSuspense flag
   // on a vnode's type and calls the `process` method, passing in renderer