Skip to content

Commit 79b7349

Browse files
authored
fix conflict
1 parent 374fd21 commit 79b7349

3 files changed

Lines changed: 3 additions & 43 deletions

File tree

src/content/blog/2024/12/05/react-19.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -294,11 +294,7 @@ A component was suspended by an uncached promise. Creating promises inside a Cli
294294

295295
</ConsoleBlockMulti>
296296

297-
<<<<<<< HEAD
298297
为了解决这个问题,你需要从支持 promise 缓存的 Suspense 强化库或框架中传递一个 promise。在未来,我们计划推出功能,使在渲染中缓存 promise 更加容易。
299-
=======
300-
To fix, you need to pass a promise from a Suspense powered library or framework that supports caching for promises. In the future we plan to ship features to make it easier to cache promises in render.
301-
>>>>>>> 3bb7a4eb249b25ef6b47e1664d8985d4813c5f80
302298

303299
</Note>
304300

src/content/community/team.md

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,8 @@ React 核心团队成员全职致力于核心组件 API 的开发,负责 React
2222
Dan 在意外发现 Microsoft PowerPoint 内部的 Visual Basic 后进入了编程行业。他发现了自己的真正使命,就是将 [Sebastian](#sebastian-markbåge) 的推特转化为长篇博客文章。Dan 偶尔会通过整局游戏都躲在草丛里的方式,在《堡垒之夜》中赢得胜利。
2323
</TeamMember>
2424

25-
<<<<<<< HEAD
26-
<TeamMember name="Eli White" permalink="eli-white" photo="/images/team/eli-white.jpg" github="TheSavior" twitter="Eli_White" threads="elicwhite" title="Engineering Manager at Meta">
27-
Eli 因为在中学时期的黑客行为被学校暂时开除,从此踏入了编程的世界。自 2017 年起,他就一直致力于 React 和 React Native 的工作。他是个美食爱好者,特别喜欢冰淇淋和苹果派。你常常能发现 Eli 在尝试一些别出心裁的活动,如跑酷、室内跳伞,以及空中丝绸表演。
28-
=======
2925
<TeamMember name="Eli White" permalink="eli-white" photo="/images/team/eli-white.jpg" github="elicwhite" twitter="Eli_White" threads="elicwhite" title="Engineering Manager at Meta">
30-
Eli got into programming after he got suspended from middle school for hacking. He has been working on React and React Native since 2017. He enjoys eating treats, especially ice cream and apple pie. You can find Eli trying quirky activities like parkour, indoor skydiving, and aerial silks.
31-
>>>>>>> 3bb7a4eb249b25ef6b47e1664d8985d4813c5f80
26+
Eli 因为在中学时期的黑客行为被学校暂时开除,从此踏入了编程的世界。自 2017 年起,他就一直致力于 React 和 React Native 的工作。他是个美食爱好者,特别喜欢冰淇淋和苹果派。你常常能发现 Eli 在尝试一些别出心裁的活动,如跑酷、室内跳伞,以及空中丝绸表演。
3227
</TeamMember>
3328

3429
<TeamMember name="Hendrik Liebau" permalink="hendrik-liebau" photo="/images/team/hendrik.jpg" github="unstubbable" bsky="unstubbable.bsky.social" twitter="unstubbable" title="Engineer at Vercel">
@@ -71,13 +66,8 @@ React 核心团队成员全职致力于核心组件 API 的开发,负责 React
7166
Mofei 在意识到编程可以帮她在视频游戏中作弊时开始了编程生涯。她在本科和研究生期间专注于操作系统的研究,但现在她发现自己非常享受在 React 上的编程工作。在工作之外,她喜欢解决攀岩中遇到的问题,并且正在计划她的下一次背包旅行。
7267
</TeamMember>
7368

74-
<<<<<<< HEAD
75-
<TeamMember name="Noah Lemen" permalink="noah-lemen" photo="/images/team/noahlemen.jpg" github="noahlemen" twitter="noahlemen" threads="noahlemen" personal="noahle.men" title="Engineer at Meta">
76-
Noah 在纽约大学接受音乐技术教育期间,对 UI 编程产生了兴趣。在 Meta,他从事内部工具、浏览器、网络性能方面的工作,目前专注于 React。在工作之余,他会捣鼓合成器,或者和他的猫在一起玩耍。
77-
=======
7869
<TeamMember name="Pieter Vanderwerff" permalink="pieter-vanderwerff" photo="/images/team/pieter.jpg" github="pieterv" threads="pietervanderwerff" title="Engineer at Meta">
7970
Pieter studied building science but after failing to get a job he made himself a website and things escalated from there. At Meta, he enjoys working on performance, languages and now React. When he's not programming you can find him off-road in the mountains.
80-
>>>>>>> 3bb7a4eb249b25ef6b47e1664d8985d4813c5f80
8171
</TeamMember>
8272

8373
<TeamMember name="Rick Hanlon" permalink="rick-hanlon" photo="/images/team/rickhanlonii.jpg" github="rickhanlonii" twitter="rickhanlonii" threads="rickhanlonii" bsky="ricky.fm" title="Engineer at Meta">
@@ -88,13 +78,6 @@ React 核心团队成员全职致力于核心组件 API 的开发,负责 React
8878
Ruslan's introduction to UI programming started when he was a kid by manually editing HTML templates for his custom gaming forums. Somehow, he ended up majoring in Computer Science. He enjoys music, games, and memes. Mostly memes.
8979
</TeamMember>
9080

91-
<<<<<<< HEAD
92-
<TeamMember name="Sathya Gunasekaran " permalink="sathya-gunasekaran" photo="/images/team/sathya.jpg" github="gsathya" twitter="_gsathya" threads="gsathya.03" title="Engineer at Meta">
93-
尽管 Sathya 在学校时对《龙书》并无好感,但奇妙的是,他的整个职业生涯都与编译器紧密相连。当他不忙于编译 React 组件的时候,他可能正品尝一杯咖啡,或者正在享受又一份美味的 Dosa。
94-
</TeamMember>
95-
96-
=======
97-
>>>>>>> 3bb7a4eb249b25ef6b47e1664d8985d4813c5f80
9881
<TeamMember name="Sebastian Markbåge" permalink="sebastian-markbåge" photo="/images/team/sebmarkbage.jpg" github="sebmarkbage" twitter="sebmarkbage" threads="sebmarkbage" title="Engineer at Vercel">
9982
Sebastian 主修心理学。他通常比较沉默寡言。即使他说些什么,我们其他人通常也要等几个月后才能理解他的意思。他的姓氏正确的发音是“mark-boa-geh”,但出于实用考虑,他接受了“mark-beige”的发音——这也是他处理 React 问题的方式。
10083
</TeamMember>
@@ -111,13 +94,6 @@ React 核心团队成员全职致力于核心组件 API 的开发,负责 React
11194
在 React 刚刚发布的四天后,Sophie 就将她当时的整个项目全部改写成了使用 React,现在回想起来,她认为这可能有些鲁莽。但在成为该项目的最大贡献者之后,她开始思考为何自己没有像其他人那样从 Facebook 那里得到报酬。于是,她正式加入了 Facebook 的团队,带领 React 度过了它的青少年时期。虽然她在几年前已经离开了那个职位,但她仍然是团队群聊的一员,继续“提供价值”。
11295
</TeamMember>
11396

114-
<<<<<<< HEAD
115-
<TeamMember name="Tianyu Yao" permalink="tianyu-yao" photo="/images/team/tianyu.jpg" github="tyao1" twitter="tianyu0" title="Engineer at Meta">
116-
Tianyu 对计算机的兴趣源自他对视频游戏的热爱,这使得他选择了计算机科学作为自己的专业,至今他依然热衷于一些看似孩子气的游戏,如《英雄联盟》。当他不在电脑前时,他喜欢和他的两只小猫一起玩耍,或者去徒步旅行和划皮艇。
117-
</TeamMember>
118-
119-
=======
120-
>>>>>>> 3bb7a4eb249b25ef6b47e1664d8985d4813c5f80
12197
<TeamMember name="Yuzhi Zheng" permalink="yuzhi-zheng" photo="/images/team/yuzhi.jpg" github="yuzhi" twitter="yuzhiz" threads="yuzhiz" title="Engineering Manager at Meta">
12298
Yuzhi 在学校期间学习的是计算机科学。她喜欢看到自己的代码能在无需实验室的情况下就能实现效果,这给她带来了即时的满足感。现在,她是 React 组织的一名经理。在成为经理之前,她曾在 Relay 数据获取框架上有过工作经历。在业余时间,Yuzhi 享受通过园艺和家居改善项目来优化自己的生活。
12399
</TeamMember>

src/content/reference/react/useActionState.md

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -67,15 +67,9 @@ form state 是一个只在表单被提交触发 action 后才会被更新的值
6767
6868
`useActionState` 返回一个包含以下值的数组:
6969
70-
<<<<<<< HEAD
7170
1. 当前的 state。第一次渲染期间,该值为传入的 `initialState` 参数值。在 action 被调用后该值会变为 action 的返回值。
72-
2. 一个新的 action 函数用于在你的 `form` 组件的 `action` 参数或表单中任意一个 `button` 组件的 `formAction` 参数中传递。
71+
2. 一个新的 action 函数用于在你的 `form` 组件的 `action` 参数或表单中任意一个 `button` 组件的 `formAction` 参数中传递。这个 action 也可以手动在 [`startTransition`](/reference/react/startTransition) 中调用。
7372
3. 一个 `isPending` 标识,用于表明是否有正在 pending 的 Transition。
74-
=======
75-
1. The current state. During the first render, it will match the `initialState` you have passed. After the action is invoked, it will match the value returned by the action.
76-
2. A new action that you can pass as the `action` prop to your `form` component or `formAction` prop to any `button` component within the form. The action can also be called manually within [`startTransition`](/reference/react/startTransition).
77-
3. The `isPending` flag that tells you whether there is a pending Transition.
78-
>>>>>>> 3bb7a4eb249b25ef6b47e1664d8985d4813c5f80
7973
8074
#### 注意 {/*caveats*/}
8175
@@ -107,15 +101,9 @@ function MyComponent() {
107101
108102
`useActionState` 返回一个包含以下值的数组:
109103
110-
<<<<<<< HEAD
111104
1. 该表单的 <CodeStep step={1}>当前 state</CodeStep>,初始值为提供的 <CodeStep step={4}>初始 state</CodeStep>,当表单被提交后则改为传入的 <CodeStep step={3}>action</CodeStep> 的返回值。
112-
2. 传入 `<form>` 标签的 `action` 属性的 <CodeStep step={2}>新 action</CodeStep>。
105+
2. 传入 `<form>` 标签的 `action` 属性的 <CodeStep step={2}>新 action</CodeStep>,或者手动在 `startTransition` 中调用它
113106
3. 一个 <CodeStep step={1}>pending state</CodeStep>,可以在处理 action 的过程中使用它。
114-
=======
115-
1. The <CodeStep step={1}>current state</CodeStep> of the form, which is initially set to the <CodeStep step={4}>initial state</CodeStep> you provided, and after the form is submitted is set to the return value of the <CodeStep step={3}>action</CodeStep> you provided.
116-
2. A <CodeStep step={2}>new action</CodeStep> that you pass to `<form>` as its `action` prop or call manually within `startTransition`.
117-
3. A <CodeStep step={1}>pending state</CodeStep> that you can utilise while your action is processing.
118-
>>>>>>> 3bb7a4eb249b25ef6b47e1664d8985d4813c5f80
119107
120108
表单被提交后,传入的 <CodeStep step={3}>action</CodeStep> 函数会被执行。返回值将会作为该表单的新的 <CodeStep step={1}>当前 state</CodeStep>。
121109

0 commit comments

Comments
 (0)