We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4fc2c6c commit ef09c85Copy full SHA for ef09c85
ReactWindows/ReactNative/Bridge/DispatcherHelpers.cs
@@ -30,7 +30,7 @@ public static void AssertOnDispatcher()
30
/// </returns>
31
public static bool IsOnDispatcher()
32
{
33
- return CoreWindow.GetForCurrentThread()?.Dispatcher != null;
+ return CoreWindow.GetForCurrentThread()?.Dispatcher == CoreApplication.MainView.CoreWindow.Dispatcher;
34
}
35
36
/// <summary>
0 commit comments