-
Notifications
You must be signed in to change notification settings - Fork 330
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
Property not up to date when combined and sampled #161
Comments
Nope, that's some nasty behavior indeed. I tidied up the fiddle a bit: http://jsfiddle.net/DPHBB/ |
Next up: write a failing test into the Bacon.js test suite. Wanna try? |
My quick analysis is that this is related to the non-atomicity of Property updates, that's already coverd in #85. In any case, a failing unit test is the way to go from here. |
Added a few tests so far, didn't get a chance to test it with the atomic branch yet though. What's currently the status with the branch? |
The branch contains the first shot at atomic upds. Not updated. -juha- On 29.4.2013, at 22.50, Niklas von Hertzen [email protected] wrote:
|
Tried your tests on the atomic-updates branch. Fails similarly to master. |
Ok then. Re-implementated the quite-crufty sampledBy with a simpler one. Now in the atomic-updates branch, your tests pass. One more reason to get that shit into master, right? |
Nice, I'll give the branch a go |
@niklasvh Atomic Updates now included in master and in release 0.4.0. Would you like to try if they solve your problem? |
Awesome! I'll give them a go tomorrow and let you know if there are still any issues |
This fixed the issue and a number of other related ones. I came across a similar bug yesterday which this update did not fix though, but I'll open another issue for it once I've managed to narrow the problem down into a simplified case. |
I came across an issue where the property is not up to date to the value it should be, and narrowed it down to when using it with
combine
andsampledBy
.A simplified case of it can be seen at http://jsfiddle.net/76HxL/
The issue is resolved if the
combinedStream.onValue(function() { });
subscriber is removed (http://jsfiddle.net/76HxL/1/), but that isn't really an option (the example is just a very simplified case).Is this an expected behavior?
The text was updated successfully, but these errors were encountered: