react-native-windows icon indicating copy to clipboard operation
react-native-windows copied to clipboard

Add SourceBundleHost and SourceBundlePort to ReactInstanceSettings

Open thristhart opened this issue 6 years ago • 3 comments

DeveloperSettings.SourceBundleHost and DeveloperSettings.SourceBundlePort are passed to the client JS for HMR, and default to localhost:8081 when these values are not set.

There isn't currently a way to set those values from ReactApplication, which makes it difficult to take advantage of Fast Refresh while developing on remote clients (such as an Xbox). Adding them to ReactInstanceSettings would enable that functionality.

thristhart avatar Apr 13 '20 16:04 thristhart

@Thristhart I believe the required functionality is being added in this PR, can you confirm? https://github.com/microsoft/react-native-windows/pull/4979/files

FYI @chrisglein

rectified95 avatar May 21 '20 22:05 rectified95

@rectified95 confirmed, that's what I'm looking for!

thristhart avatar May 23 '20 00:05 thristhart

Closing as duplicate. FYI @chrisglein

rectified95 avatar May 26 '20 18:05 rectified95