You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, the function NavigateBackWithResultAsync is not working when called in a flyout(it closes the flyout but the data is not sent). The video below shows that when I remove the qualifier "!" it works without a problem.
bug.nav.mp4
SecondModel
public partial record SecondModel
{
private INavigator _navigator;
public string Text;
public SecondModel(INavigator navigator, string text)
{
_navigator = navigator;
Text = text;
}
public async Task OpenFlyout()
{
var text = "Data from Second Page";
await _navigator.NavigateViewModelAsync<TestModel>(this, "!", data: text);
//await _navigator.NavigateViewModelAsync<TestModel>(this, data: text);
}
}
TestModel
namespace testfluent.Presentation;
public partial record TestModel
{
private INavigator _navigator;
public string Text;
public TestModel(
INavigator navigator, string text)
{
_navigator = navigator;
Text = text;
}
public async Task GoBack()
{
var text = "Data From Flyout";
await _navigator.NavigateBackWithResultAsync(this, data: text);
}
}
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, the function NavigateBackWithResultAsync is not working when called in a flyout(it closes the flyout but the data is not sent). The video below shows that when I remove the qualifier "!" it works without a problem.
bug.nav.mp4
SecondModel
TestModel
Source Code: testfluent.zip
Beta Was this translation helpful? Give feedback.
All reactions