Skip to content

Commit

Permalink
fix: add display name for suspense component (#3312)
Browse files Browse the repository at this point in the history
  • Loading branch information
cexbrayat authored Mar 23, 2021
1 parent 0600eb4 commit 3b3a9a1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/runtime-core/src/components/Suspense.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3b3a9a1

Please sign in to comment.