-
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
Shift Handler?.UpdateValue to happen after all PropertyChanged events have fired #5587
Comments
@PureWeen should we consider bringing other events which fire in Is this issue mostly about validation whether such a minimal change breaks something? PS: Actually, firing |
We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process. |
Related I think we could clean up 22347 once we conceive of how we want this to work. We should probably move the handler update code to fire about here maui/src/Controls/src/Core/BindableObject.cs Line 645 in 28e9cbb
The difficulty comes with maintaining behavior when users manually call OnPropertyChanged |
Currently our
Handler?.UpdateValue
call fires during the top call here fromBindableObject
This means that sometimes the
Handler
will have a premature vision of the world. The Handler update should fire after as many of thePropertyChanged
events have settled as possible.For example it leads to issues like this
#5586
The
Parent
on theFormattedText
is set inside theBP.OnPropertyChanged
which fires after theHandler?.UpdateValue
fires. So anything theBP.OnPropertyChanged
changes will now have to re-propagate.The text was updated successfully, but these errors were encountered: