Skip to content

Commit

Permalink
Rename strict effects / unsafe effects to use the reusable state term…
Browse files Browse the repository at this point in the history
…inology (#4505)
  • Loading branch information
sebmarkbage authored and rickhanlonii committed Mar 29, 2022
1 parent 5c7bb6b commit e88c7af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions content/docs/strict-mode.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ The legacy context API is error-prone, and will be removed in a future major ver
Read the [new context API documentation](/docs/context.html) to help migrate to the new version.


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

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.

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

0 comments on commit e88c7af

Please sign in to comment.