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

Avoid notify changes from a null or disposed control #6060

Merged
merged 5 commits into from
May 2, 2022
Merged

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
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
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
3 participants