Why WhenAnyValue stops working after using SuppressChangeNotifications? #3830
Unanswered
sinatrocious
asked this question in
Q&A
Replies: 2 comments 8 replies
-
I'm confused as to what you're finding unexpected here - you are suppressing change notifications, they shouldn't fire! |
Beta Was this translation helpful? Give feedback.
1 reply
-
You are waiting for Garbage Collection to remove the Suppression after clicking the button, as your not disposing immediately the suppression will remain active until the Garbage Collector comes along to clean up, hence the delay. |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have reactive object and monitoring for its reactive properties using
WhenAnyValue
. It works until I useSuppressChangeNotifications
once. Then it become broken and I am trying to figure out what to do:Show/hide repro
After clicking
Test
button the checkbox is not updated for several clicks. How to fix this?In real project there are many properties monitored in several places outside and I need to silently update them (load values without anyone noticing the changes) and I don't want to introduce
bool IgnoreChanges
and use it everywhere. This is where I was hopingSuppressChangeNotifications
will work, but there is something like caching values and skipping emitting going on as it seems. Any easy workaround?Beta Was this translation helpful? Give feedback.
All reactions