Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

disable "Open Debugger" menu item if the bundler is disconnected #42876

Closed
wants to merge 1 commit into from

Conversation

EdmondChuiHW
Copy link
Contributor

@EdmondChuiHW EdmondChuiHW commented Feb 5, 2024

Summary:
Changelog:
[Android][Fixed] Disable the "Open Debugger" item from dev menu if the bundler is disconnected

Existing

In our dev menu, the "Open Debugger" menu item is shown even if the packager isn't connected.

{F1451833462}

In this PR

The "Open Debugger" menu item is disabled when the packager is disconnected with the message "Connect to the bundler to debug JavaScript"

{F1451834019}

Reference

  • There are existing checks, but they're async. We don't need the check to be accurate; and we don't want to delay the dev menu from opening
  • Also on iOS: D53354110

Differential Revision: D53428914

@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. p: Facebook Partner: Facebook Partner labels Feb 5, 2024
@facebook-github-bot
Copy link
Contributor

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

EdmondChuiHW added a commit to EdmondChuiHW/react-native that referenced this pull request Feb 5, 2024
…ebook#42876)

Summary:

Changelog:
[Android][Fixed] Disable the "Open Debugger" item from dev menu if the bundler is disconnected

# Existing
In our dev menu, the "Open Debugger" menu item is shown even if the packager isn't connected.

{F1451833462}

# In this PR
The "Open Debugger" menu item is disabled when the packager is disconnected with the message "Connect to the bundler to debug JavaScript"

{F1451834019}

# Reference
* Also on iOS: D53354110

Differential Revision: D53428914
@facebook-github-bot
Copy link
Contributor

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

EdmondChuiHW added a commit to EdmondChuiHW/react-native that referenced this pull request Feb 5, 2024
…ebook#42876)

Summary:

Changelog:
[Android][Fixed] Disable the "Open Debugger" item from dev menu if the bundler is disconnected

# Existing
In our dev menu, the "Open Debugger" menu item is shown even if the packager isn't connected.

{F1451833462}

# In this PR
The "Open Debugger" menu item is disabled when the packager is disconnected with the message "Connect to the bundler to debug JavaScript"

{F1451834019}

# Reference
* Also on iOS: D53354110

Differential Revision: D53428914
@facebook-github-bot
Copy link
Contributor

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

EdmondChuiHW added a commit to EdmondChuiHW/react-native that referenced this pull request Feb 5, 2024
…ebook#42876)

Summary:

Changelog:
[Android][Fixed] Disable the "Open Debugger" item from dev menu if the bundler is disconnected

# Existing
In our dev menu, the "Open Debugger" menu item is shown even if the packager isn't connected.

{F1451833462}

# In this PR
The "Open Debugger" menu item is disabled when the packager is disconnected with the message "Connect to the bundler to debug JavaScript"

{F1451834019}

# Reference
* Also on iOS: D53354110

Differential Revision: D53428914
@facebook-github-bot
Copy link
Contributor

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

EdmondChuiHW added a commit to EdmondChuiHW/react-native that referenced this pull request Feb 5, 2024
…ebook#42876)

Summary:

Changelog:
[Android][Fixed] Disable the "Open Debugger" item from dev menu if the bundler is disconnected

# Existing
In our dev menu, the "Open Debugger" menu item is shown even if the packager isn't connected.

{F1451833462}

# In this PR
The "Open Debugger" menu item is disabled when the packager is disconnected with the message "Connect to the bundler to debug JavaScript"

{F1451834019}

# Reference
* Also on iOS: D53354110

Differential Revision: D53428914
@facebook-github-bot
Copy link
Contributor

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

@analysis-bot
Copy link

analysis-bot commented Feb 5, 2024

Platform Engine Arch Size (bytes) Diff
android hermes arm64-v8a 17,233,732 +448
android hermes armeabi-v7a n/a --
android hermes x86 n/a --
android hermes x86_64 n/a --
android jsc arm64-v8a 20,600,535 +424
android jsc armeabi-v7a n/a --
android jsc x86 n/a --
android jsc x86_64 n/a --

Base commit: db066ac
Branch: main

@facebook-github-bot
Copy link
Contributor

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

EdmondChuiHW added a commit to EdmondChuiHW/react-native that referenced this pull request Feb 5, 2024
…ebook#42876)

Summary:

Changelog:
[Android][Fixed] Disable the "Open Debugger" item from dev menu if the bundler is disconnected

# Existing
In our dev menu, the "Open Debugger" menu item is shown even if the packager isn't connected.

{F1451833462}

# In this PR
The "Open Debugger" menu item is disabled when the packager is disconnected with the message "Connect to the bundler to debug JavaScript"

{F1451834019}

# Reference
* Also on iOS: D53354110

Differential Revision: D53428914
@facebook-github-bot
Copy link
Contributor

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

…ebook#42876)

Summary:

Changelog:
[Android][Fixed] Disable the "Open Debugger" item from dev menu if the bundler is disconnected

# Existing
In our dev menu, the "Open Debugger" menu item is shown even if the packager isn't connected.

{F1451833462}

# In this PR
The "Open Debugger" menu item is disabled when the packager is disconnected with the message "Connect to the bundler to debug JavaScript"

{F1451834019}

# Reference
* Also on iOS: D53354110

Differential Revision: D53428914
@facebook-github-bot
Copy link
Contributor

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

Copy link

github-actions bot commented Feb 9, 2024

This pull request was successfully merged by @EdmondChuiHW in 7afc8b8.

When will my fix make it into a release? | Upcoming Releases

@github-actions github-actions bot added the Merged This PR has been merged. label Feb 9, 2024
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.

3 participants