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
{{ message }}
This repository has been archived by the owner on May 1, 2024. It is now read-only.
When I navigate to another page and load content from my api, the ActivityIndicator flickers or the interface is blocked and produces that feeling of flickering and has to do with the animation because it hasn't finished yet navigation, if I set the animation to false everything works fine. There should be an event apart from OnAppearing or OnDisappearing in shell or ContentPage to determine when the navigation has finished and there execute our API call methods.
Example:
var vm = new ChatMessagesPageViewModel
{
ChatRoom = _selectedChat
};
var page = new ChatMessagesPage
{
BindingContext = vm
};
await Shell.Current.Navigation.PushAsync(page);
public ChatRoom ChatRoom
{
get => _chatRoom;
set
{
_chatRoom = value;
ChatMessagesLoader.Load(InitMessagesAsync);
}
}
public async Task InitMessagesAsync()
{
if (!_chatRoom.IsPrivate)
{
var cleanIds = _chatRoom.UserIds.Except(users.Keys);
if (cleanIds.Any())
{
await Task.WhenAll(cleanIds.Select(async id =>
{
var user = await ApiRest.UserAsync(id);
users.Add(id, user.Name);
}));
}
}
var employes = await ApiRest.ChatMessagesAsync();
}
The text was updated successfully, but these errors were encountered:
Hi, @angelru - thank you for sharing! We definitely agree that's an awesome idea, and we're excited to introduce these capabilities in .NET MAUI - please feel free to check out and follow the discussion on our current spec for lifecycle events and share your thoughts with us! We'd love to hear them :)
When I navigate to another page and load content from my api, the ActivityIndicator flickers or the interface is blocked and produces that feeling of flickering and has to do with the animation because it hasn't finished yet navigation, if I set the animation to false everything works fine. There should be an event apart from OnAppearing or OnDisappearing in shell or ContentPage to determine when the navigation has finished and there execute our API call methods.
Example:
The text was updated successfully, but these errors were encountered: