C
C#13mo ago
Mekasu0124

✅ Not understanding Avalonia Error

public void CreateNewUser(Database db, CountryCodes cc)
{
var vm = new NewUserViewModel(cc);

Observable.Merge(
vm.Create
.Do(model =>
{
_db.SaveNewContact(model);
ShowHomeScreen(db, cc);
}),
vm.Back)
.Take(1)
.Subscribe(model =>
{
if (model == null)
{
ShowHomeScreen(db, cc);
}
});

Content = vm;
}
public void CreateNewUser(Database db, CountryCodes cc)
{
var vm = new NewUserViewModel(cc);

Observable.Merge(
vm.Create
.Do(model =>
{
_db.SaveNewContact(model);
ShowHomeScreen(db, cc);
}),
vm.Back)
.Take(1)
.Subscribe(model =>
{
if (model == null)
{
ShowHomeScreen(db, cc);
}
});

Content = vm;
}
I'm not understanding why the Merge is giving this error. Thanks
No description
1 Reply
Mekasu0124
Mekasu0124OP13mo ago
i figured it out.
Want results from more Discord servers?
Add your server