Skip to content

Conversation

@eps1lon
Copy link
Collaborator

@eps1lon eps1lon commented Sep 9, 2025

The divs are already hidden={true} so we can tell React to deprioritize the hidden tabs. That way Suspense related effects like auto-scroll and suspense auto-selection don't apply while using the Components tab.

I also introduced StrictMode into the DevTools tree to find potential issues.

@meta-cla meta-cla bot added the CLA Signed label Sep 9, 2025
@github-actions github-actions bot added the React Core Team Opened by a member of the React Core Team label Sep 9, 2025
@eps1lon eps1lon force-pushed the sebbie/09-08-_devtools_wrap_each_tab_in_activity_ branch from 8279ea6 to 24c70b7 Compare September 9, 2025 09:44
import type {SourceSelection} from './Editor/EditorPane';

const MaybeActivity =
React.unstable_Activity ||
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we need to disable <Activity> usage, we should just remove this branch and keep StrictMode usage in.

@eps1lon eps1lon force-pushed the sebbie/09-08-_devtools_wrap_each_tab_in_activity_ branch from 24c70b7 to 6086b2b Compare October 3, 2025 22:44
@eps1lon eps1lon force-pushed the sebbie/09-08-_devtools_wrap_each_tab_in_activity_ branch from 6086b2b to f42ea4a Compare October 3, 2025 23:03
import type {ReactFunctionLocation, ReactCallSite} from 'shared/ReactTypes';
import type {SourceSelection} from './Editor/EditorPane';

const MaybeActivity: any =
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know how to type this. Flow treats React.Activity as a Symbol not a ElementType with certain props.


function HookTreeCase() {
const onClick = useCustomHook();
const [, , onClick] = useCustomHook();
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

drive-by fix for noisy shell errors.

@eps1lon eps1lon marked this pull request as ready for review October 3, 2025 23:05
@eps1lon eps1lon requested review from hoxyq and sebmarkbage October 3, 2025 23:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed React Core Team Opened by a member of the React Core Team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants