Skip to content

Commit eddbf3f

Browse files
authored
fix conflict
1 parent e4cda3c commit eddbf3f

File tree

4 files changed

+3
-22
lines changed

4 files changed

+3
-22
lines changed

src/content/community/index.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,4 @@ Stack Overflow 是非常受欢迎的论坛,在论坛中,你可以提出代
2929

3030
## 新闻 {/*news*/}
3131

32-
<<<<<<< HEAD
33-
关于 React 的最新消息,请在 Twitter 上关注 [**@reactjs**](https://twitter.com/reactjs),同时关注本站中的 [React 的官方博客](/blog/)
34-
=======
35-
For the latest news about React, [follow **@reactjs** on Twitter](https://twitter.com/reactjs), [**@react.dev** on Bluesky](https://bsky.app/profile/react.dev) and the [official React blog](/blog/) on this website.
36-
>>>>>>> 7ab1969da1b7edd5cc268535aef5e4b4bdaa7ece
32+
关于 React 的最新消息,请在 Twitter 上关注 [**@reactjs**](https://twitter.com/reactjs)、 在 Bluesky 关注 [**@react.dev**](https://bsky.app/profile/react.dev) 以及关注本站的 [React 的官方博客](/blog/)

src/content/learn/build-a-react-app-from-scratch.md

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -115,17 +115,10 @@ React 生态系统中包含许多用于解决这些问题的工具。我们列
115115

116116
通过路由拆分代码,并与打包和数据获取集成,可以减少应用程序的初始加载时间以及渲染应用程序最大可见内容所需的时间 ([最大内容绘制](https://web.dev/articles/lcp))。
117117

118-
<<<<<<< HEAD
119118
有关代码拆分的说明,请参阅你的构建工具文档:
120-
- [Vite 构建优化](https://v3.vitejs.dev/guide/features.html#build-optimizations)
119+
- [Vite 构建优化](https://vite.dev/guide/features.html#build-optimizations)
121120
- [Parcel 代码拆分](https://parceljs.org/features/code-splitting/)
122121
- [Rsbuild 代码拆分](https://rsbuild.dev/guide/optimization/code-splitting)
123-
=======
124-
For code-splitting instructions, see your build tool docs:
125-
- [Vite build optimizations](https://vite.dev/guide/features.html#build-optimizations)
126-
- [Parcel code splitting](https://parceljs.org/features/code-splitting/)
127-
- [Rsbuild code splitting](https://rsbuild.dev/guide/optimization/code-splitting)
128-
>>>>>>> 7ab1969da1b7edd5cc268535aef5e4b4bdaa7ece
129122

130123
### 提高应用程序性能 {/*improving-application-performance*/}
131124

src/content/learn/separating-events-from-effects.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -439,11 +439,7 @@ function ChatRoom({ roomId, theme }) {
439439
// ...
440440
```
441441
442-
<<<<<<< HEAD
443-
这个方法解决了问题。注意你必须从 Effect 依赖项中 **移除** `onConnected`。**Effect Event 是非响应式的并且必须从依赖项中删除**。
444-
=======
445-
This solves the problem. Note that you had to *remove* `theme` from the list of your Effect's dependencies, because it's no longer used in the Effect. You also don't need to *add* `onConnected` to it, because **Effect Events are not reactive and must be omitted from dependencies.**
446-
>>>>>>> 7ab1969da1b7edd5cc268535aef5e4b4bdaa7ece
442+
这个方法解决了问题。注意你必须从 Effect 依赖项中 **移除** `theme`,因为 Effect 中没有使用它。你也不需要 **添加** `onConnected`,因为 **Effect Event 是非响应式的并且必须从依赖项中删除**。
447443
448444
验证新表现是否和你预期的一样:
449445

src/content/reference/react/useTransition.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -163,11 +163,7 @@ function CheckoutForm() {
163163

164164
传递给 `startTransition` 的函数被称为 "Action"。你可以在 Action 中更新状态和执行副作用操作,这些工作将在后台执行,不会阻塞页面的用户交互。一个 Transition 可以包含多个 Action,且在 Transition 进行期间,你的用户界面将保持流畅响应。例如,如果用户点击一个标签页后又改变主意点击另一个标签页,第二个点击会立即被处理,无需等待第一个更新完成。
165165

166-
<<<<<<< HEAD
167166
为了向用户提供 Transition 进行中的反馈, `isPending` 状态会在首次调用 `startTransition` 时切换为 `true`,并会在所有 Action 完成且最终状态呈现给用户前一直保持为 `true`。Transition 机制确保 Action 中的副作用会完整执行以[避免不必要的加载指示](#preventing-unwanted-loading-indicators),同时你可以通过 `useOptimistic` 在 Transition 进行期间提供即时反馈。
168-
=======
169-
To give the user feedback about in-progress Transitions, the `isPending` state switches to `true` at the first call to `startTransition`, and stays `true` until all Actions complete and the final state is shown to the user. Transitions ensure side effects in Actions to complete in order to [prevent unwanted loading indicators](#preventing-unwanted-loading-indicators), and you can provide immediate feedback while the Transition is in progress with `useOptimistic`.
170-
>>>>>>> 7ab1969da1b7edd5cc268535aef5e4b4bdaa7ece
171167

172168
<Recipes titleText="Action 与常规事件处理的区别">
173169

0 commit comments

Comments
 (0)