Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"type": "prerelease",
"comment": "Fix toggle debugger setting issue with ReactApplication",
"packageName": "react-native-windows",
"email": "[email protected]",
"commit": "76228b95ceccaa87cc75563083415308805f914d",
"date": "2019-12-13T00:22:29.280Z"
}
15 changes: 7 additions & 8 deletions vnext/Microsoft.ReactNative/ReactInstanceCreator.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,13 @@ struct ReactInstanceCreator : react::uwp::IReactInstanceCreator {
std::shared_ptr<react::uwp::IReactInstance> getInstance();
void markAsNeedsReload();

// TODO: Remove this wart. AFAIK, it was only added for the
// Universal.SampleApp It's here because of the abstract base class. The
// ReactInstanceSettings in this project has a UseWebDebugger property
// that should be used instead as it automatically "persists" by virtue
// of being attached to the ReactNativeHost.
void persistUseWebDebugger(bool /*useWebDebugger*/){};
// TODO: Remove too
void persistUseLiveReload(bool /*useliveReload*/){};
void persistUseWebDebugger(bool useWebDebugger) {
m_instanceSettings.UseWebDebugger(useWebDebugger);
Copy link
Contributor

Choose a reason for hiding this comment

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

Is it possible to add test case on this?

};

void persistUseLiveReload(bool useliveReload) {
m_instanceSettings.UseLiveReload(useliveReload);
};

private:
Microsoft::ReactNative::ReactInstanceSettings m_instanceSettings{};
Expand Down