-
Notifications
You must be signed in to change notification settings - Fork 49.7k
Open
Labels
Description
React version: 19.2
Steps To Reproduce
- Add two (or more) components wrapped in
Activity - Add a
<title>component to each component wrapped inActivity - The browser title does not change if you switch an Activity from
hiddentovisible
Link to code example: https://github.com/nilshartmann/react-activity-title
The current behavior
- The last (?) rendered components sets the title with no respect to surrounding
Activity - In the screenshot below
<Activity mode="visible">renders a component that itself renders<title>two</title>, but actually the tab title is set tothree(rendered by a<title>-component inside a child component of<Activity mode="hidden">)
The expected behavior
- Only the
<title>in the<Activity mode="visible">component should affect the browser title - or it should be documented somewhere that the current behaviour is working as expected