Skip to content

Commit 4c72f01

Browse files
authored
fix conflict
1 parent a653362 commit 4c72f01

File tree

4 files changed

+5
-30
lines changed

4 files changed

+5
-30
lines changed

src/content/learn/scaling-up-with-reducer-and-context.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -690,11 +690,7 @@ ul, li { margin: 0; padding: 0; }
690690
</TasksContext>
691691
```
692692

693-
<<<<<<< HEAD
694-
相反,任何需要 tasks 的组件都可以从 `TaskContext` 中读取它:
695-
=======
696-
Instead, any component that needs the task list can read it from the `TasksContext`:
697-
>>>>>>> 84a56968d92b9a9e9bbac1ca13011e159e815dc1
693+
相反,任何需要 tasks 的组件都可以从 `TasksContext` 中读取它:
698694

699695
```js {2}
700696
export default function TaskList() {

src/content/reference/rsc/directives.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,7 @@ title: "指示符"
1010

1111
<Intro>
1212

13-
<<<<<<< HEAD
14-
指示符(directive)向 [与 React 服务器组件兼容的捆绑器](/learn/start-a-new-react-project#bleeding-edge-react-frameworks) 提供指令(instruction)。
15-
=======
16-
Directives provide instructions to [bundlers compatible with React Server Components](/learn/start-a-new-react-project#full-stack-frameworks).
17-
>>>>>>> 84a56968d92b9a9e9bbac1ca13011e159e815dc1
13+
指示符(directive)向 [与 React 服务器组件兼容的捆绑器](/learn/start-a-new-react-project#full-stack-frameworks) 提供指令(instruction)。
1814

1915
</Intro>
2016

src/content/reference/rsc/server-components.md

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,7 @@ title: 服务器组件
44

55
<RSC>
66

7-
<<<<<<< HEAD
8-
服务器组件被用在 [React 服务器组件](/learn/start-a-new-react-project#bleeding-edge-react-frameworks) 中。
9-
=======
10-
Server Components are for use in [React Server Components](/learn/start-a-new-react-project#full-stack-frameworks).
11-
>>>>>>> 84a56968d92b9a9e9bbac1ca13011e159e815dc1
7+
服务器组件被用在 [React 服务器组件](/learn/start-a-new-react-project#full-stack-frameworks) 中。
128

139
</RSC>
1410

@@ -26,11 +22,7 @@ React 服务器组件中的「服务器」就是指这个独立的环境。服
2622

2723
#### 我如何构建对服务器组件的支持? {/*how-do-i-build-support-for-server-components*/}
2824

29-
<<<<<<< HEAD
3025
虽然 React 19 中的 React 服务器组件是稳定的,并且在小版本之间不会发生破坏,但用于实现 React 服务器组件打包器或框架的底层 API 不遵循 semver,并可能在 React 19.x 的小版本之间发生破坏。
31-
=======
32-
While React Server Components in React 19 are stable and will not break between minor versions, the underlying APIs used to implement a React Server Components bundler or framework do not follow semver and may break between minors in React 19.x.
33-
>>>>>>> 84a56968d92b9a9e9bbac1ca13011e159e815dc1
3426

3527
为了支持 React 服务器组件作为打包器或框架,我们建议固定到特定的 React 版本,或者使用 Canary 发行版。我们将继续与打包器和框架合作,以在未来稳定用于实现 React 服务器组件的 API。
3628

@@ -278,13 +270,8 @@ import db from './database';
278270
async function Page({id}) {
279271
// 使用 await 会使服务器组件暂停
280272
const note = await db.notes.get(id);
281-
<<<<<<< HEAD
282-
283-
// 注意: 没有使用 await, 所以从这里开始执行,但是客户端上面进行 await
284-
=======
285273

286-
// NOTE: not awaited, will start here and await on the client.
287-
>>>>>>> 84a56968d92b9a9e9bbac1ca13011e159e815dc1
274+
// 注意: 没有使用 await, 所以从这里开始执行,但是客户端上面进行 await
288275
const commentsPromise = db.comments.get(note.id);
289276
return (
290277
<div>

src/content/reference/rsc/use-client.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,7 @@ export default function RichTextEditor({ timestamp, text }) {
4141
}
4242
```
4343

44-
<<<<<<< HEAD
45-
当从服务器组件导入带有 `'use client'` 标记的文件时,[兼容的捆绑工具](/learn/start-a-new-react-project#bleeding-edge-react-frameworks) 将模块导入视为服务器运行和客户端运行代码之间的边界。
46-
=======
47-
When a file marked with `'use client'` is imported from a Server Component, [compatible bundlers](/learn/start-a-new-react-project#full-stack-frameworks) will treat the module import as a boundary between server-run and client-run code.
48-
>>>>>>> 84a56968d92b9a9e9bbac1ca13011e159e815dc1
44+
当从服务器组件导入带有 `'use client'` 标记的文件时,[兼容的捆绑工具](/learn/start-a-new-react-project#full-stack-frameworks) 将模块导入视为服务器运行和客户端运行代码之间的边界。
4945

5046
作为 `RichTextEditor` 的依赖项,无论 `formatDate``Button` 的模块是否包含 `'use client'`,其都将在客户端上进行评估。请注意,当从服务器代码导入时,单个模块可能在服务器上进行评估,并且当从客户端代码导入时,可能在客户端上进行评估。
5147

0 commit comments

Comments
 (0)