Skip to content

Commit

Permalink
Fix Suspense node type as function
Browse files Browse the repository at this point in the history
  • Loading branch information
chenesan committed Apr 8, 2019
1 parent ad1d0a1 commit 173001f
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -235,7 +235,7 @@ function toTree(vnode) {
}
case FiberTags.Suspense: {
return {
nodeType: 'suspense',
nodeType: 'function',
type: Suspense,
props: { ...node.memoizedProps },
key: ensureKeyOrUndefined(node.key),
Expand Down

0 comments on commit 173001f

Please sign in to comment.