Skip to content

Commit 667cd6d

Browse files
Update src/content/reference/react/Activity.md
Co-authored-by: Xleine <github@xleine.moe>
1 parent c1178f6 commit 667cd6d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/content/reference/react/Activity.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -611,7 +611,7 @@ video { width: 300px; margin-top: 10px; aspect-ratio: 16/9; }
611611

612612
</Sandpack>
613613

614-
这是因为 `App` 组件直到 `Posts` 标签页变为活跃状态时才会挂载 `Posts`
614+
这是因为 `App` 组件直到 `Posts` 标签页变为活跃状态时才会挂载 `Posts`
615615

616616
如果我们更新 `App`,改用 `Activity` 边界来显示和隐藏活跃标签页,那么 `Posts` 将在应用初始加载时被预渲染,从而允许它在变得可见之前就获取到所需数据。
617617

0 commit comments

Comments
 (0)