Skip to content

Commit fac5525

Browse files
committed
Clean up props
1 parent c169d0b commit fac5525

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/content/reference/react/Activity.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,14 +58,11 @@ In this way, Activity can thought of as a mechanism for rendering "background ac
5858
#### Props {/*props*/}
5959

6060
* `children`: The UI you intend to show and hide.
61-
* **optional** `mode`: Either "visible" or "hidden". Defaults to "visible". When "hidden", updates to the children are deferred to lower priority. The component will not create Effects until the Activity is switched to "visible". If a "visible" Activity switches to "hidden", the Effects will be destroyed.
61+
* `mode`: A string value of either `'visible'` or `'hidden'`. If omitted, defaults to `'visible'`.
6262

6363
#### Caveats {/*caveats*/}
6464

65-
- While hidden, the `children` of `<Activity>` are visually hidden on the page.
66-
- `<Activity>` will unmount all Effects when switching from "visible" to "hidden" without destroying React or DOM state. This means Effects that are expected to run only once on mount will run again when switching from "hidden" to "visible". Conceptually, "hidden" Activities are unmounted, but they are not destroyed either. We recommend using [`<StrictMode>`](/reference/react/StrictMode) to catch any unexpected side-effects from this behavior.
6765
- When used with `<ViewTransition>`, hidden activities that reveal in a transition will activate an "enter" animation. Visible Activities hidden in a transition will activate an "exit" animation.
68-
- Parts of the UI wrapped in `<Activity mode="visible">` will hydrate at a lower priority than other content.
6966

7067
---
7168

0 commit comments

Comments
 (0)