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

Use NativeHostTargetSessionObserver in LogBox #45578

Closed
wants to merge 2 commits into from

Conversation

hoxyq
Copy link
Contributor

@hoxyq hoxyq commented Jul 22, 2024

Summary:

Changelog: [Internal]

Use previously introduced native module for managing the presence of warning notifications in LogBox:

  • Don't display warnings and Fusebox migration message if there is an active debugging session
  • If the session has just been started, clear warnings to hide Fusebox migration message
  • If there is no active debugging session (even if there were some at some point of Host lifetime), display Fusebox migration message

See demo in test plan.

Differential Revision: D59975265

@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 Jul 22, 2024
@facebook-github-bot
Copy link
Contributor

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

@facebook-github-bot
Copy link
Contributor

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

@hoxyq hoxyq force-pushed the export-D59975265 branch from 97bb3cd to cb6975e Compare July 24, 2024 18:57
hoxyq added a commit to hoxyq/react-native that referenced this pull request Jul 24, 2024
Summary:
Pull Request resolved: facebook#45578

# Changelog: [Internal]

Use previously introduced native module for managing the presence of warning notifications in LogBox:
- Don't display warnings and Fusebox migration message if there is an active debugging session
- If the session has just been started, clear warnings to hide Fusebox migration message
- If there is no active debugging session (even if there were some at some point of Host lifetime), display Fusebox migration message

See demo in test plan.

Reviewed By: huntie

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

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

@hoxyq hoxyq force-pushed the export-D59975265 branch from cb6975e to 6445302 Compare July 24, 2024 19:24
hoxyq added a commit to hoxyq/react-native that referenced this pull request Jul 24, 2024
Summary:
Pull Request resolved: facebook#45578

# Changelog: [Internal]

Use previously introduced native module for managing the presence of warning notifications in LogBox:
- Don't display warnings and Fusebox migration message if there is an active debugging session
- If the session has just been started, clear warnings to hide Fusebox migration message
- If there is no active debugging session (even if there were some at some point of Host lifetime), display Fusebox migration message

See demo in test plan.

Reviewed By: huntie

Differential Revision: D59975265
hoxyq added 2 commits July 25, 2024 06:52
Summary:
Pull Request resolved: facebook#45577

# Changelog: [Internal]

This diff adds new native module, which can be used from JavaScript.

The API includes:
1. `hasActiveSession`: returns a boolean flag, which can be used for determining if 1 or more debugging sessions are active for current HostTarget.
2. `subscribe`: receives a callback, which will be executed once the debugging state changes. To be more precise, this will only be called when state is changing from no active sessions to 1 session or the other way around. Callback should expect to receive one boolean argument, which can be used for determining  if there is an active session.

Differential Revision: D59975264
Summary:
Pull Request resolved: facebook#45578

# Changelog: [Internal]

Use previously introduced native module for managing the presence of warning notifications in LogBox:
- Don't display warnings and Fusebox migration message if there is an active debugging session
- If the session has just been started, clear warnings to hide Fusebox migration message
- If there is no active debugging session (even if there were some at some point of Host lifetime), display Fusebox migration message

See demo in test plan.

Reviewed By: huntie

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

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

@hoxyq hoxyq force-pushed the export-D59975265 branch from 6445302 to bb235cb Compare July 25, 2024 14:03
@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Jul 25, 2024
@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 9c61d9a.

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