Skip to content

Commit

Permalink
chore: fixing missing GoBackTo API in NavigationBuilder
Browse files Browse the repository at this point in the history
  • Loading branch information
dansiegel committed Apr 7, 2024
1 parent f96c641 commit 9f603bd
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Maui/Prism.Maui/Navigation/Builder/NavigationBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,11 @@ public INavigationBuilder AddParameter(string key, object value)
return this;
}

public async Task<INavigationResult> GoBackToAsync<TViewModel>()
{
var name = NavigationBuilderExtensions.GetNavigationKey<TViewModel>(this);
return await _navigationService.GoBackToAsync(name, _navigationParameters);
}
public Task<INavigationResult> GoBackToAsync<TViewModel>() =>
GoBackToAsync(NavigationBuilderExtensions.GetNavigationKey<TViewModel>(this));

public Task<INavigationResult> GoBackToAsync(string name) =>
_navigationService.GoBackToAsync(name, _navigationParameters);

public Task<INavigationResult> NavigateAsync()
{
Expand Down

0 comments on commit 9f603bd

Please sign in to comment.