-
-
Notifications
You must be signed in to change notification settings - Fork 90
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
Support Smart Collections #12
Comments
If anything, I think the right approach would be to integrate hooks into smart collections themselves rather than using the monkey-patching approach here. There are two reasons for this. First, they are not part of core, so using a top-to-bottom programming approach would be easier to push through. Second, it would further raise the benefits of smart collections so that core would really have to consider bringing them in along with the collection hooks. Also, see https://groups.google.com/forum/#!topic/meteor-core/jG1KLObX1bM |
I looked through @arunoda's code quickly and it seems I might be able to plug some hooks into his infrastructure more easily than with core. Not 100% sure yet, was just a quick glance. Should be doable |
Arunoda will not make any more features for SC. I don't think this makes sense anymore. What you think ? |
Agreed |
Ah. Is Smart Collections going into core or something? cc @arunoda |
Nop. SmartCollections will not going into core. But smart collection's core feature oplog support will be come with Meteor 1.0 I used it in production and some other people use it, since it's the only way we can scale meteor now. But SmartCollections have limitations and it's does not have full meteor feature set. So once 1.0 comes we all can safely move into that. |
Sort of related..
Is there anything wrong with doing this? p.s. I'm new to github so hopefully this is a good place to post this. |
@craig-l you're approaching it correctly. Simply having you post this here may be enough for people to find. If people continue to be confused with how to have Collection2 interoperate with collection hooks, I'll consider a note |
https://github.com/arunoda/meteor-smart-collections
Only
Meteor.Collection
gets mutated by this package, so I can't switch toSmartCollection
s yet.There could well be a separate package like
meteor-smart-collection-hooks
— I haven't assessed the difficulty of this at all, and I don't know if Smart Collections have any high-level implementation differences that would invalidate the current approach used to hijackMeteor.Collection
.cc @arunoda
The text was updated successfully, but these errors were encountered: