Skip to content

Commit 34626b8

Browse files
committed
fix: assigned Uri variable in renderer thread to avoid CPU cache sync issues (related #445)
1 parent bb6eb6a commit 34626b8

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/bunit.web/TestDoubles/NavigationManager/FakeNavigationManager.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,11 @@ protected override void NavigateToCore(string uri, bool forceLoad)
2828
{
2929
Uri = ToAbsoluteUri(uri).OriginalString;
3030

31-
renderer.Dispatcher.InvokeAsync(
32-
() => NotifyLocationChanged(isInterceptedLink: false));
31+
renderer.Dispatcher.InvokeAsync(() =>
32+
{
33+
Uri = ToAbsoluteUri(uri).OriginalString;
34+
NotifyLocationChanged(isInterceptedLink: false);
35+
});
3336
}
3437
}
3538
}

0 commit comments

Comments
 (0)