Skip to content

Split ReactInstanceConfig.enableDebugging into enableInspector and enableDevMode#53201

Closed
rubennorte wants to merge 4 commits into
facebook:mainfrom
rubennorte:export-D79804006
Closed

Split ReactInstanceConfig.enableDebugging into enableInspector and enableDevMode#53201
rubennorte wants to merge 4 commits into
facebook:mainfrom
rubennorte:export-D79804006

Conversation

@rubennorte
Copy link
Copy Markdown
Contributor

Summary:
Changelog: [internal]

This splits the ReactHost option enableDebugging into more granular options:

  • enableInspector which enables the connection with the inspector/debugger.
  • enableDevMode which enables the use of bundles from Metro, reloads, etc.

This allows us to enable the inspector in Fantom without consuming bundles from Metro.

This should be backwards compatible with existing apps.

In the future, we should be able to inject custom DevSupportManager instances into the ReactHost so we can customize all options with any level of granularity (the same way we do on Android, for example).

Differential Revision: D79804006

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Aug 11, 2025
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D79804006

@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D79804006

@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D79804006

@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D79804006

…ableDevMode (facebook#53201)

Summary:
Pull Request resolved: facebook#53201

Changelog: [internal]

This splits the `ReactHost` option `enableDebugging` into more granular options:
- `enableInspector` which enables the connection with the inspector/debugger.
- `enableDevMode` which enables the use of bundles from Metro, reloads, etc.

This allows us to enable the inspector in Fantom without consuming bundles from Metro.

This should be backwards compatible with existing apps.

In the future, we should be able to inject custom `DevSupportManager` instances into the `ReactHost` so we can customize all options with any level of granularity (the same way we do on Android, for example).

Reviewed By: rshest

Differential Revision: D79804006
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D79804006

@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request has been merged in 42db2f8.

@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Aug 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged This PR has been merged. p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants