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
|
optimized
|
||||||
} = suspense
|
} = suspense
|
||||||
|
|
||||||
// invoke @recede event
|
// invoke @fallback event
|
||||||
const onFallback = vnode.props && vnode.props.onFallback
|
const onFallback = vnode.props && vnode.props.onFallback
|
||||||
if (isFunction(onFallback)) {
|
if (isFunction(onFallback)) {
|
||||||
onFallback()
|
onFallback()
|
||||||
|
@ -49,6 +49,8 @@ expectError(<KeepAlive include={123} />)
|
|||||||
// Suspense
|
// Suspense
|
||||||
expectType<JSX.Element>(<Suspense />)
|
expectType<JSX.Element>(<Suspense />)
|
||||||
expectType<JSX.Element>(<Suspense key="1" />)
|
expectType<JSX.Element>(<Suspense key="1" />)
|
||||||
expectType<JSX.Element>(<Suspense onResolve={() => {}} onFallback={() => {}} />)
|
expectType<JSX.Element>(
|
||||||
|
<Suspense onResolve={() => {}} onFallback={() => {}} onPending={() => {}} />
|
||||||
|
)
|
||||||
// @ts-expect-error
|
// @ts-expect-error
|
||||||
expectError(<Suspense onResolve={123} />)
|
expectError(<Suspense onResolve={123} />)
|
||||||
|
Loading…
Reference in New Issue
Block a user