-
-
Notifications
You must be signed in to change notification settings - Fork 115
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
observe-sequence has a bug when _ids have a period #425
Comments
Hi @znewsham to which Blaze version did you upgrade? |
blaze@2.6.1 but probably more importantly observe-sequence@1.0.20 |
Is it fixed if you upgrade to Blaze @2.71 and observe-sequence@1.0.21 |
It doesn't look like it is - the problem is with the |
You're right, I had a similar issue with non-reactive #each blocks in 2.7.0 but they were related to another cause. The However, since Edit: we should also update the tests accordingly as it seems this regression was never catched by the tests somehow |
The difference is, |
It looks like https://you-dont-need.github.io/You-Dont-Need-Lodash-Underscore/#/?id=_has is wrong - or maybe referencing a specific version? |
I think it's neither. I really think it's extended but not documented as such |
@znewsham fiendly ping. If you can confirm this basically running I will write one or two tests and pushb this to the release queue. If you find it hard to test we could also to an RC release |
Confirmed - it's working, we've had it running in production (a busy site) for at least 3 months at this point |
I'm in the process of upgrading an app from 2.12 and I'm seeing a reactivity issue with
#each
- specifically, when an array has_id
with a period, e.g.,The contents of the
#each
block doesn't re-render when theproperty
changes. The cause for this is the change from_.has
to a customhas
implementation here: https://github.com/meteor/blaze/blob/master/packages/observe-sequence/observe_sequence.js#L361C5-L361C5Because it does a recursive lookup (on an object that as far as I can tell is always flat) it doesn't see this property and therefore believes the old array didn't have this item.
This would be "ok" if the
added
callbacks fired, but they don't. What this means is the block re-renders with the previous object.The text was updated successfully, but these errors were encountered: