Skip to content

Commit e88c7af

Browse files
sebmarkbagerickhanlonii
authored andcommitted
Rename strict effects / unsafe effects to use the reusable state terminology (#4505)
1 parent 5c7bb6b commit e88c7af

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

content/docs/strict-mode.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ The legacy context API is error-prone, and will be removed in a future major ver
130130
Read the [new context API documentation](/docs/context.html) to help migrate to the new version.
131131

132132

133-
### Detecting unsafe effects {#detecting-unsafe-effects}
133+
### Ensuring reusable state {#ensuring-reusable-state}
134134

135135
In the future, we’d like to add a feature that allows React to add and remove sections of the UI while preserving state. For example, when a user tabs away from a screen and back, React should be able to immediately show the previous screen. To do this, React support remounting trees using the same component state used before unmounting.
136136

@@ -175,4 +175,4 @@ When the component unmounts, effects are destroyed as normal:
175175
> This only applies to development mode, _production behavior is unchanged_.
176176
177177
For help supporting common issues, see:
178-
- [How to Support Strict Effects](https://github.com/reactwg/react-18/discussions/18)
178+
- [How to support Reusable State in Effects](https://github.com/reactwg/react-18/discussions/18)

0 commit comments

Comments
 (0)