소스 검색

fix: add display name for suspense component (#3312)

Cédric Exbrayat 5 년 전
부모
커밋
3b3a9a1f52
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      packages/runtime-core/src/components/Suspense.ts

+ 1 - 0
packages/runtime-core/src/components/Suspense.ts

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