GoToAsync Failed With Java.Lang.IllegalStateException
Fan Yang
0
Reputation points
In my ViewModel, I had a relaycommand to navigation another page:
[RelayCommand]
public async Task ReviewIt () {
...
await Shell.Current.GoToAsync(nameof(ReviewItView), new Dictionary<string, object>{
["key1"] = value1,
["key2"] = value2
});
}
but it ends with exception:
Java.Lang.IllegalStateException: 'The specified child already has a parent. You must call removeView() on the child's parent first.'
how to fix this?