Skip to content

Set correct HMR client platform - #628

Merged
Eloy Durán (alloy) merged 1 commit into
masterfrom
set-correct-hmr-client-platform
Oct 3, 2020
Merged

Eloy Durán (alloy) merged 1 commit into
masterfrom
set-correct-hmr-client-platform

Conversation

@alloy

@alloy Eloy Durán (alloy) commented Oct 2, 2020 •

Copy link
Copy Markdown
Member

Please select one of the following

  • I am removing an existing difference between facebook/react-native and microsoft/react-native-macos 👍
  • I am cherry-picking a change from Facebook's react-native into microsoft/react-native-macos 👍
  • I am making a fix / change for the macOS implementation of react-native
  • I am making a change required for Microsoft usage of react-native

Summary

Re-apply fork change to set the right platform in the HMR setup.

Microsoft Reviewers: Open in CodeFlow

NSString *const path = [bundleURL.path substringFromIndex:1]; // Strip initial slash.
NSString *const host = bundleURL.host;
NSNumber *const port = bundleURL.port;
// TODO(macOS ISS#2323203) - we could perhaps infer the platform from the bundleURL's query parameters, instead of hardcoding

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The bundleURL has a query parameter like platform=macos. If that parameter is always expected to be available, then we could reduce our forked surface by using that query parameter upstream.

@alloy Eloy Durán (alloy) mentioned this pull request Oct 2, 2020
20 of 25 tasks
@alloy Eloy Durán (alloy) changed the title Set correct HMT client platform Set correct HMR client platform Oct 3, 2020
@alloy
Eloy Durán (alloy) merged commit 902292e into master Oct 3, 2020
@alloy
Eloy Durán (alloy) deleted the set-correct-hmr-client-platform branch October 3, 2020 17:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants