Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

[Core] Fix exception navigating using Shell #14577

Merged
merged 1 commit into from
Sep 8, 2021
Merged
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
5 changes: 4 additions & 1 deletion Xamarin.Forms.Core/Shell/ShellNavigationManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,10 @@ public async Task GoToAsync(ShellNavigationParameters shellNavigationParameters)
}
else
{
await _shell.CurrentItem.CurrentItem.GoToAsync(navigationRequest, queryData, animate, isRelativePopping);
await Device.InvokeOnMainThreadAsync(() =>
{
return _shell.CurrentItem.CurrentItem.GoToAsync(navigationRequest, queryData, animate, isRelativePopping);
});
}

(_shell as IShellController).UpdateCurrentState(source);
Expand Down