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

Fixing _loaded event firing logic #22807

Merged
merged 3 commits into from
Jun 4, 2024

Conversation

rafalka
Copy link
Contributor

@rafalka rafalka commented Jun 3, 2024

Description of Change

Fixes obvious mistake in VisualElement.Loaded event handling which causes firing this event twice

Issues Fixed

Fixes #22740

@rafalka rafalka requested a review from a team as a code owner June 3, 2024 19:23
@dotnet-policy-service dotnet-policy-service bot added the community ✨ Community Contribution label Jun 3, 2024
Copy link
Contributor

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.

@PureWeen
Copy link
Member

PureWeen commented Jun 3, 2024

@PureWeen PureWeen requested review from PureWeen June 3, 2024 22:39
@rafalka
Copy link
Contributor Author

rafalka commented Jun 4, 2024

@dotnet-policy-service agree

@PureWeen
Copy link
Member

PureWeen commented Jun 4, 2024

/azp run

Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@jsuarezruiz jsuarezruiz requested review from jsuarezruiz and removed request for tj-devel709 June 4, 2024 10:54
@jsuarezruiz jsuarezruiz added the area-core-lifecycle XPlat and Native UIApplicationDelegate/Activity/Window lifecycle events label Jun 4, 2024
@mattleibow mattleibow merged commit 21620dc into dotnet:main Jun 4, 2024
49 checks passed
@GuidoNeele
Copy link
Contributor

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.

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 community ✨ Community Contribution
Projects
None yet
Development

Successfully merging this pull request may close these issues.

PlatformBehavior.OnAttachedTo() is called twice during adding behaviour to a control causing a memory leak
6 participants