Skip to content

Commit

Permalink
Update src/content/reference/react/Suspense.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Yucohny authored Jul 14, 2023
1 parent f5b621e commit 3aa0dfb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/content/reference/react/Suspense.md
Original file line number Diff line number Diff line change
Expand Up @@ -1726,7 +1726,7 @@ main {

当你按下按钮时,`Router` 组件渲染了 `ArtistPage`,而不是 `IndexPage``ArtistPage` 内部的一个组件挂起(suspend),所以最近的 Suspense 边界开始显示退路方案(fallback)。最近的 Suspense 边界在根附近,所以整个站点布局被 `BigSpinner` 替换了。

为了阻止这种情况,你可以使用 [`startTransition`:](/reference/react/startTransition) 将导航状态更新标记为 **过渡**
为了阻止这种情况,你可以使用 [`startTransition`:](/reference/react/startTransition) 将导航状态更新标记为 **过渡**

```js {5,7}
function Router() {
Expand Down

0 comments on commit 3aa0dfb

Please sign in to comment.