-
Notifications
You must be signed in to change notification settings - Fork 767
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
Updating throttled observable #99
Comments
After debugging the code, I can now see what happens. The write function of the computed observable returned by the throttle extender gets actually called with the correct value at first by the But then it gets called again with its original value by the anonymus function passed to At first the subscribers are not notified because this is the point of the throttle extender. Writing the actual observable is deferred. But then the other write comes in with the old value. When the throttle computed observable actually writes the original observable it writes the last value it gets, the old value. That's why the value of the observable doesn't change. I still don't know how to fix the issue in the mapping plugin, but I hope this explanation helps someone who does. |
Thanks for the detailed analysis, I'll look into it. |
This should be fixed now. Can you confirm? |
I've run into the following issue.
When running this, I get the expected result, the observable is updated and the subscriber function fires when the update happens:
But when trying the same thing with a throttle extender, the value is not written to the observable:
The text was updated successfully, but these errors were encountered: