-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Fixing _loaded event firing logic #22807
Fixing _loaded event firing logic #22807
Conversation
Hey there @rafalka! Thank you so much for your PR! Someone from the team will get assigned to your PR shortly and we'll get it reviewed. |
@rafalka can you add a unit test for this? https://github.com/dotnet/maui/blob/main/src/Controls/tests/Core.UnitTests/PageLifeCycleTests.cs |
@dotnet-policy-service agree |
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
Please have a look at this issue CommunityToolkit/Maui#1931 and how that can be solved. Looks like this fix does some strange things when the Unloaded event is not set on the page and Loaded is. |
Description of Change
Fixes obvious mistake in
VisualElement.Loaded
event handling which causes firing this event twiceIssues Fixed
Fixes #22740