Skip to content

Commit 55b4e55

Browse files
committed
Merge branch 'main' of https://github.com/reactjs/reactjs.org into sync-38ee8d2a
2 parents 48c7757 + 38ee8d2 commit 55b4e55

File tree

4 files changed

+10
-12
lines changed

4 files changed

+10
-12
lines changed

src/content/reference/react/StrictMode.md

+6
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,12 @@ function App() {
122122

123123
在这个例子中,严格模式的检查不会对 `Header``Footer` 组件运行。然而,它们会在 `Sidebar``Content` 以及它们内部的所有组件上运行,无论多深。
124124

125+
<Note>
126+
127+
When `StrictMode` is enabled for a part of the app, React will only enable behaviors that are possible in production. For example, if `<StrictMode>` is not enabled at the root of the app, it will not [re-run Effects an extra time](#fixing-bugs-found-by-cleaning-up-and-re-attaching-dom-refs-in-development) on initial mount, since this would cause child effects to double fire without the parent effects, which cannot happen in production.
128+
129+
</Note>
130+
125131
---
126132

127133
### 修复在开发过程中通过双重渲染发现的错误 {/*fixing-bugs-found-by-double-rendering-in-development*/}

src/content/reference/react/captureOwnerStack.md

-6
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,6 @@
22
title: captureOwnerStack
33
---
44

5-
<Canary>
6-
7-
The `captureOwnerStack` API is currently only available in React's Canary and experimental channels. Learn more about [React's release channels here](/community/versioning-policy#all-release-channels).
8-
9-
</Canary>
10-
115
<Intro>
126

137
`captureOwnerStack` reads the current Owner Stack in development and returns it as a string if available.

src/sidebarReference.json

+3-5
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,9 @@
117117
{
118118
"title": "cache",
119119
"path": "/reference/react/cache"
120+
}, {
121+
"title": "captureOwnerStack",
122+
"path": "/reference/react/captureOwnerStack"
120123
},
121124
{
122125
"title": "createContext",
@@ -147,11 +150,6 @@
147150
"title": "experimental_taintUniqueValue",
148151
"path": "/reference/react/experimental_taintUniqueValue",
149152
"version": "canary"
150-
},
151-
{
152-
"title": "captureOwnerStack",
153-
"path": "/reference/react/captureOwnerStack",
154-
"version": "canary"
155153
}
156154
]
157155
},

src/siteConfig.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Copyright (c) Facebook, Inc. and its affiliates.
33
*/
44
exports.siteConfig = {
5-
version: '19',
5+
version: '19.1',
66
// --------------------------------------
77
// Translations should replace these lines:
88
languageCode: 'zh-hans',

0 commit comments

Comments
 (0)