diff --git a/packages/playground/windows/playground/MainPage.cpp b/packages/playground/windows/playground/MainPage.cpp index 57ad5438409..aaade330325 100644 --- a/packages/playground/windows/playground/MainPage.cpp +++ b/packages/playground/windows/playground/MainPage.cpp @@ -42,6 +42,9 @@ void MainPage::OnLoadClick( host.InstanceSettings().DebuggerBreakOnNextLine(x_BreakOnFirstLineCheckBox().IsChecked().GetBoolean()); host.InstanceSettings().UseFastRefresh(x_UseFastRefreshCheckBox().IsChecked().GetBoolean()); host.InstanceSettings().DebuggerPort(static_cast(std::stoi(std::wstring(x_DebuggerPort().Text())))); + host.InstanceSettings().Properties().Set( + winrt::Microsoft::ReactNative::ReactDispatcherHelper::UIDispatcherProperty(), + winrt::Microsoft::ReactNative::ReactDispatcherHelper::UIThreadDispatcher()); // Nudge the ReactNativeHost to create the instance and wrapping context host.ReloadInstance();