chore: typos in suspense events (#2131)
Removes the mention of the recede event that has been replaced.
This commit is contained in:
parent
be27bbc5ad
commit
7e68ddd354
@ -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()
|
||||
|
@ -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} />)
|
||||
|
Loading…
Reference in New Issue
Block a user