Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Loaded lifecycle event #8683

Closed
janseris opened this issue Jul 12, 2022 · 5 comments
Closed

Add Loaded lifecycle event #8683

janseris opened this issue Jul 12, 2022 · 5 comments
Labels
area-core-lifecycle XPlat and Native UIApplicationDelegate/Activity/Window lifecycle events legacy-area-controls Label, Button, CheckBox, Slider, Stepper, Switch, Picker, Entry, Editor platform/android 🤖 platform/iOS 🍎 platform/macOS 🍏 macOS / Mac Catalyst platform/windows 🪟 s/needs-info Issue needs more info from the author t/enhancement ☀️ New feature or request
Milestone

Comments

@janseris
Copy link

janseris commented Jul 12, 2022

Description

Hi, I am trying to load data when page is loaded but not in OnAppearing because everything looks frozen and laggy when UI and database is loaded simultaneously.
I can see that this issue has already existed for 4 years in Xamarin.
xamarin/Xamarin.Forms#2210
Any chance this is finally added in MAUI?
Thank you.

Steps to Reproduce

Try do stuff "OnAppeared" or in Loaded event handler similar to other desktop frameworks.
In Blazor, that is default OnAfterRender event handler on every Component/Page

Version with bug

6.0.400 (current)

Last version that worked well

Unknown/Other

Affected platforms

iOS, Android, Windows, macOS

Affected platform versions

all

Did you find any workaround?

no

Relevant log output

No response

@janseris janseris added s/needs-verification Indicates that this issue needs initial verification before further triage will happen t/bug Something isn't working labels Jul 12, 2022
@Eilon Eilon added the legacy-area-controls Label, Button, CheckBox, Slider, Stepper, Switch, Picker, Entry, Editor label Jul 12, 2022
@jfversluis jfversluis added t/enhancement ☀️ New feature or request and removed t/bug Something isn't working s/needs-verification Indicates that this issue needs initial verification before further triage will happen labels Jul 14, 2022
@jfversluis jfversluis changed the title Pages don't have proper Loaded event Add Loaded lifecycle event Jul 14, 2022
@jfversluis jfversluis added this to the Future milestone Jul 14, 2022
@ghost
Copy link

ghost commented Jul 14, 2022

We've moved this issue to the Future milestone. This means that it is not going to be worked on for the coming release. We will reassess the issue following the current release and consider this item at that time.

@ToolmakerSteve
Copy link

ToolmakerSteve commented Jul 16, 2022

Definitely need OnAppeared event. I end up adding this to every XForms app I make (via code in custom renderers). Maui shouldn't need such kludges.

Also note that XF version of mvvmcross has this, and not only for pages (though on its VMs, not on the views). Therefore it is doable for ContentView as well. Probably should be optional; don't want overhead on every single sub-view of a complex layout. Actually, doing for Layout would be a decent tradeoff.

@PureWeen
Copy link
Member

PureWeen commented Feb 2, 2023

@janseris can you used SizeChanged or The Loaded event that's on every view now in MAUI?

https://learn.microsoft.com/en-us/dotnet/api/microsoft.maui.controls.visualelement.loaded?view=net-maui-7.0

@PureWeen PureWeen added the s/needs-info Issue needs more info from the author label Feb 2, 2023
@ghost
Copy link

ghost commented Feb 2, 2023

Hi @janseris. We have added the "s/needs-info" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.

@ghost ghost added the s/no-recent-activity Issue has had no recent activity label Feb 6, 2023
@ghost
Copy link

ghost commented Feb 6, 2023

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. If it is closed, feel free to comment when you are able to provide the additional information and we will re-investigate.

@ghost ghost closed this as completed Feb 9, 2023
@ghost ghost locked as resolved and limited conversation to collaborators Mar 11, 2023
@ghost ghost removed the s/no-recent-activity Issue has had no recent activity label Feb 1, 2024
@Eilon Eilon added the area-core-lifecycle XPlat and Native UIApplicationDelegate/Activity/Window lifecycle events label May 13, 2024
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-core-lifecycle XPlat and Native UIApplicationDelegate/Activity/Window lifecycle events legacy-area-controls Label, Button, CheckBox, Slider, Stepper, Switch, Picker, Entry, Editor platform/android 🤖 platform/iOS 🍎 platform/macOS 🍏 macOS / Mac Catalyst platform/windows 🪟 s/needs-info Issue needs more info from the author t/enhancement ☀️ New feature or request
Projects
None yet
Development

No branches or pull requests

6 participants