dev-middleware: Scaffold standalone Fusebox shell experiment #51687
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary:
Changelog: [Internal]
Context
This is the first of several commits that aim to implement a standalone shell for React Native DevTools. This will be a lightweight desktop app designed to host the debugger frontend, in much the same way as we currently use Chrome or Edge. The launch flow will otherwise remain very similar to the one that exists today.
What's changing for users?
This diff
We amend the
unstable_experiments
andunstable_browserLauncher
APIs indev-middleware
to add basic support for launching a standalone shell based on a frontend URL and a window key - the latter being an opaque string that the shell process can match against previous launches in order to reuse and foreground existing windows.We leave it up to
BrowserLauncher
implementers ( = frameworks) to provide a working implementation ofunstable_showFuseboxShell
, and do not provide one withDefaultBrowserLauncher
. This will effectively allow us to dependency-inject the actual shell implementation at stage 1 so we don't increase the download size of React Native unnecessarily.Reviewed By: rickhanlonii, robhogan
Differential Revision: D74904547