Skip to content

add worklets patch for extra react native host preventing profiling#3604

Open
FLGMwt wants to merge 1 commit intomainfrom
mob-1407-worklets-patch-for-extra-react-native-host
Open

add worklets patch for extra react native host preventing profiling#3604
FLGMwt wants to merge 1 commit intomainfrom
mob-1407-worklets-patch-for-extra-react-native-host

Conversation

@FLGMwt
Copy link
Copy Markdown
Member

@FLGMwt FLGMwt commented May 8, 2026

The Profiling Dev Tools tab is disabled with message "Multiple React Native hosts not supported". This is related to us seeing two duplicate attach options when launching the dev tools through the dev server.

Issue: react-native-community/discussions-and-proposals#954

Comment w/ patch:react-native-community/discussions-and-proposals#954 (reply in thread)

As I understand, this change only affects users debugging against worklets itself.

With this, I am able to start and stop a profiling session and get a result.

Pretty much anything "useful", even a couple taps in under 5s results in the dev tools hanging and becoming unresponsive. I discovered that it eventually completes processing, even if the device's connection with dev tools times out. Once it's done, you get the pop up of "dev tools disconnected. Reconnect? Dismiss?" <- you have to dismiss to get to the actual results or you'll lose the profiling session.

EDIT: it took a while for me to trust that it actually eventually worked consistently. I now trust that it does, one just has to be patient.

Would welcome anyone trying this out!

fixes MOB-1407

@semanticdiff-com
Copy link
Copy Markdown

Review changes with  SemanticDiff

Copy link
Copy Markdown
Contributor

@sepeterson sepeterson left a comment

Choose a reason for hiding this comment

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

Had trouble with this the other day. Much appreciated!

Copy link
Copy Markdown
Member

@jtklein jtklein left a comment

Choose a reason for hiding this comment

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

This works on my end as well. (Also Android still working after the PR)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants