Skip to content

Improve start command interactive behaviour - #39544

Closed
huntie wants to merge 1 commit into
react:mainfrom
huntie:export-D49422206
Closed

Improve start command interactive behaviour#39544
huntie wants to merge 1 commit into
react:mainfrom
huntie:export-D49422206

Conversation

@huntie

Copy link
Copy Markdown
Collaborator

Summary:
Misc improvements to npx react-native start interactive behaviour:

  • Attaches key handlers on Metro initialize_done event — printing key command info earlier (once the server starts listening to bundle requests).
  • Shutdown behaviour:
    • Awaits closing of Metro's HTTP server.
    • Pauses key listener while awaiting shutdown (dependency on cli-toolsaddInteractionListener dropped).
    • Now observes ctrl+d (ctrl+z pause behaviour removed).
  • Updates reload handler message to 'Reloading connected app(s)...' (since ).
  • Adds newline below key commands printout (even spacing).

Changelog: [Internal]

Differential Revision: D49422206

@facebook-github-botfacebook-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 fb-exported labels Sep 19, 2023
@facebook-github-bot

Copy link
Copy Markdown
Contributor

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

@github-actions

github-actionsBot commented Sep 19, 2023

Copy link
Copy Markdown
Warnings
⚠️One hour and a half have passed and the E2E jobs haven't finished yet.

Generated by 🚫 dangerJS against 17e6056

@facebook-github-bot

Copy link
Copy Markdown
Contributor

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

@facebook-github-bot

Copy link
Copy Markdown
Contributor

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

Summary:
Pull Request resolved: #39544
Misc improvements to `npx react-native start` interactive behaviour:
- Attaches key handlers on Metro `initialize_done` event — printing key command info earlier (once the server starts listening to bundle requests).
- Shutdown behaviour:
- Awaits closing of Metro's HTTP server.
- Pauses key listener while awaiting shutdown (dependency on `cli-tools` `addInteractionListener` dropped).
- Now observes `ctrl+d` (`ctrl+z` pause behaviour removed).
- Updates reload handler message to 'Reloading connected app(s)...' (since ).
- Adds newline below key commands printout (even spacing).
Changelog: [Internal]
Reviewed By: NickGerleman
Differential Revision: D49422206
fbshipit-source-id: 9dfe406f13b5caaf4213d94200480ac43b988a23
@facebook-github-bot

Copy link
Copy Markdown
Contributor

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

@github-actions

Copy link
Copy Markdown

This pull request was successfully merged by @huntie in 196b3f9.

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

@github-actionsgithub-actionsBot added the Merged This PR has been merged. label Sep 20, 2023
@huntie
huntie deleted the export-D49422206 branch February 16, 2024 15:05
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA SignedThis label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.fb-exportedMergedThis PR has been merged.p: FacebookPartner: FacebookPartner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@huntie@facebook-github-bot