Skip to content

Commit 1720d01

Browse files
HiWangyeahloveloki
andauthored
Update src/content/reference/react/useTransition.md
Co-authored-by: Xleine <xleine@qq.com>
1 parent 893a45e commit 1720d01

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/reference/react/useTransition.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1543,7 +1543,7 @@ main {
15431543
15441544
### 使用错误边界向用户显示错误 {/*displaying-an-error-to-users-with-error-boundary*/}
15451545
1546-
如果传递给 `startTransition` 的函数抛出错误,可以通过[错误边界(error boundary)](/reference/react/Component#catching-rendering-errors-with-an-error-boundary)向用户显示错误。要使用错误边界,请将调用 `useTransition` 的组件包裹在错误边界中。当传递给 `startTransition` 的函数报错时,错误边界的备用UI将会显示
1546+
如果传递给 `startTransition` 的函数抛出错误,可以通过[错误边界(error boundary)](/reference/react/Component#catching-rendering-errors-with-an-error-boundary) 向用户显示错误。要使用错误边界,请将调用 `useTransition` 的组件包裹在错误边界中。当传递给 `startTransition` 的函数报错时,错误边界的备用 UI 将会显示
15471547
15481548
<Sandpack>
15491549

0 commit comments

Comments
 (0)