chore: typos in suspense events (#2131)

Removes the mention of the recede event that has been replaced.
This commit is contained in:
Cédric Exbrayat 2020-09-16 15:30:47 +02:00 committed by GitHub
parent be27bbc5ad
commit 7e68ddd354
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -502,7 +502,7 @@ function createSuspenseBoundary(
optimized
} = suspense
// invoke @recede event
// invoke @fallback event
const onFallback = vnode.props && vnode.props.onFallback
if (isFunction(onFallback)) {
onFallback()

View File

@ -49,6 +49,8 @@ expectError(<KeepAlive include={123} />)
// Suspense
expectType<JSX.Element>(<Suspense />)
expectType<JSX.Element>(<Suspense key="1" />)
expectType<JSX.Element>(<Suspense onResolve={() => {}} onFallback={() => {}} />)
expectType<JSX.Element>(
<Suspense onResolve={() => {}} onFallback={() => {}} onPending={() => {}} />
)
// @ts-expect-error
expectError(<Suspense onResolve={123} />)