Skip to content

Commit 41b2acb

Browse files
merging all conflicts
2 parents 14e0ecb + c0c955e commit 41b2acb

File tree

5 files changed

+22
-12
lines changed

5 files changed

+22
-12
lines changed

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
"@radix-ui/react-context-menu": "^2.1.5",
3333
"body-scroll-lock": "^3.1.3",
3434
"classnames": "^2.2.6",
35-
"date-fns": "^2.16.1",
3635
"debounce": "^1.2.1",
3736
"github-slugger": "^1.3.0",
3837
"next": "15.1.0",

src/content/reference/rsc/directives.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@ title: "ディレクティブ"
1010

1111
<Intro>
1212

13+
<<<<<<< HEAD
1314
ディレクティブによって、[React Server Components 互換バンドラ](/learn/start-a-new-react-project#bleeding-edge-react-frameworks)に指示を与えます。
15+
=======
16+
Directives provide instructions to [bundlers compatible with React Server Components](/learn/start-a-new-react-project#full-stack-frameworks).
17+
>>>>>>> c0c955ed1d1c4fe3bf3e18c06a8d121902a01619
1418
1519
</Intro>
1620

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

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@ title: サーバコンポーネント
44

55
<RSC>
66

7+
<<<<<<< HEAD
78
サーバコンポーネントは [React Server Components](/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+
>>>>>>> c0c955ed1d1c4fe3bf3e18c06a8d121902a01619
812
913
</RSC>
1014

@@ -22,7 +26,11 @@ React Server Components の "server" とはこの別の環境を指していま
2226

2327
#### サーバコンポーネントのサポートを追加する方法 {/*how-do-i-build-support-for-server-components*/}
2428

29+
<<<<<<< HEAD
2530
React 19 の React Server Components は安定しており、マイナーバージョン間での破壊的変更はありませんが、サーバコンポーネントのバンドラやフレームワークを実装するために使用される基盤となる 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+
>>>>>>> c0c955ed1d1c4fe3bf3e18c06a8d121902a01619
2634
2735
React Server Components をバンドラやフレームワークでサポートする場合は、特定の React バージョンに固定するか、Canary リリースを使用することをお勧めします。React Server Components を実装するために使用される API を安定化させるため、今後もバンドラやフレームワークと連携を続けていきます。
2836

@@ -45,7 +53,7 @@ function Page({page}) {
4553
setContent(data.content);
4654
});
4755
}, [page]);
48-
56+
4957
return <div>{sanitizeHtml(marked(content))}</div>;
5058
}
5159
```
@@ -69,7 +77,7 @@ import sanitizeHtml from 'sanitize-html'; // Not included in bundle
6977
async function Page({page}) {
7078
// NOTE: loads *during* render, when the app is built.
7179
const content = await file.readFile(`${page}.md`);
72-
80+
7381
return <div>{sanitizeHtml(marked(content))}</div>;
7482
}
7583
```
@@ -113,7 +121,7 @@ function Note({id}) {
113121
setNote(data.note);
114122
});
115123
}, [id]);
116-
124+
117125
return (
118126
<div>
119127
<Author id={note.authorId} />
@@ -253,7 +261,7 @@ export default function Expandable({children}) {
253261
<p>this is the second note</p>
254262
</Expandable>
255263
<!--...-->
256-
</div>
264+
</div>
257265
</body>
258266
```
259267

@@ -270,8 +278,8 @@ import db from './database';
270278
async function Page({id}) {
271279
// Will suspend the Server Component.
272280
const note = await db.notes.get(id);
273-
274-
// NOTE: not awaited, will start here and await on the client.
281+
282+
// NOTE: not awaited, will start here and await on the client.
275283
const commentsPromise = db.comments.get(note.id);
276284
return (
277285
<div>

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

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

44+
<<<<<<< HEAD
4445
`'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+
>>>>>>> c0c955ed1d1c4fe3bf3e18c06a8d121902a01619
4549
4650
上記では `formatDate``Button``RichTextEditor` が依存するモジュールですので、これらのモジュール自体に `'use client'` ディレクティブが含まれているかどうかに関わらず、これらもクライアントで評価されます。ある単一のモジュールが、サーバコードからインポートされた場合はサーバで、クライアントコードからインポートされた場合はクライアントで評価される場合があることに注意してください。
4751

yarn.lock

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2799,11 +2799,6 @@ data-view-byte-offset@^1.0.0:
27992799
es-errors "^1.3.0"
28002800
is-data-view "^1.0.1"
28012801

2802-
date-fns@^2.16.1:
2803-
version "2.28.0"
2804-
resolved "https://registry.npmjs.org/date-fns/-/date-fns-2.28.0.tgz"
2805-
integrity sha512-8d35hViGYx/QH0icHYCeLmsLmMUheMmTyV9Fcm6gvNwdw31yXXH+O85sOBJ+OLnLQMKZowvpKb6FgMIQjcpvQw==
2806-
28072802
debounce@^1.2.1:
28082803
version "1.2.1"
28092804
resolved "https://registry.npmjs.org/debounce/-/debounce-1.2.1.tgz"

0 commit comments

Comments
 (0)