KEMBAR78
Avoid notify changes from a null or disposed control by jsuarezruiz · Pull Request #6060 · dotnet/maui · GitHub
Skip to content

Conversation

@jsuarezruiz
Copy link
Contributor

Description of Change

Avoid notify changes from a null or disposed control. In Xamarin.Forms we was doing something similar but, instead of having something centralized, we did it in different Renderers https://github.com/xamarin/Xamarin.Forms/blob/5.0.0/Xamarin.Forms.Platform.Android/Renderers/LabelRenderer.cs#L148

Issues Fixed

Fixes #5848

@jsuarezruiz jsuarezruiz added t/bug Something isn't working t/housekeeping ♻︎ labels Apr 13, 2022
@Eilon Eilon added the legacy-area-controls Label, Button, CheckBox, Slider, Stepper, Switch, Picker, Entry, Editor label Apr 13, 2022
@jsuarezruiz
Copy link
Contributor Author

jsuarezruiz commented Apr 26, 2022

Applied changes based on a team meeting feedback:

  • We don't call DisconnectHandler if the view is disposed.
  • Moved the verification to know if a property can be updated from an extension class to the PropertyMapper class.

@PureWeen Could you review it when you can?. Thanks.

@rmarinho rmarinho self-requested a review April 28, 2022 21:07
Copy link
Member

@rmarinho rmarinho left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tests are failing

image

@rmarinho rmarinho merged commit d88b177 into main May 2, 2022
@rmarinho rmarinho deleted the fix-5848 branch May 2, 2022 09:05
@github-actions github-actions bot locked and limited conversation to collaborators Dec 21, 2023
@samhouts samhouts added the fixed-in-6.0.300-rc.3 Look for this fix in 6.0.300-rc.3! label Aug 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

fixed-in-6.0.300-rc.3 Look for this fix in 6.0.300-rc.3! legacy-area-controls Label, Button, CheckBox, Slider, Stepper, Switch, Picker, Entry, Editor t/bug Something isn't working t/housekeeping ♻︎

Projects

None yet

Development

Successfully merging this pull request may close these issues.

App Crash From Multiple Theme Switches

4 participants