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
Conflict with collection-hooks package #2
Comments
@matb33 wondering if you might have some ideas on a work around, or if the issue might somehow be addressed within collection-hooks internals? :) |
workaround, place collection-hooks after collection-helpers within .meteor/packages file |
Sorry for not responding any earlier, I looked quickly for a few minutes but didn't have a chance to look deeper. |
No problem, indeed helpers is applied to the prototype. I think I'll dig into the issue a bit more today and let you know |
Still not really sure!, though it's fairly easy to reproduce, just place collection-hooks before collection-helpers in your .meteor/packages file |
@matb33 Do you have any ideas? |
I haven't had time to look. I possibly may have a chance today (fingers crossed) |
Yet another problem that may be solved if one just registers a weak dependency from collection-hooks (this package, Collection2, etc) |
Not sure exactly what you mean? On Wednesday, 12 March 2014, Andrew Mao notifications@github.com wrote:
|
If a package specifies a weak dependency on another package, that package always gets loaded before this one. So instead of running in circles trying to make either load order work, I suggest coordinating with other package authors to just agree to have one specify a weak dependency on the other, especially when one or both of the packages is modifying prototypes or built-in functions that are prone to pathological behavior. This was also mentioned in Meteor-Community-Packages/meteor-collection-hooks#24 although @matb33 was kind of against it at the time ;) |
Yeah I guess it seems okay however it feels a little bit band aid in this Not really sure if there's a way around that. What do you think? On Wednesday, 12 March 2014, Andrew Mao notifications@github.com wrote:
|
When I last looked at this, I couldn't for the life of me remember why I was even touching |
Hey @mattb33 it wasn't really obvious to me why it was happening either, On Wednesday, 12 March 2014, Mathieu Bouchard notifications@github.com
|
@matb33 wasn't it because In any case the problem seems to be https://github.com/matb33/meteor-collection-hooks/blob/master/collection-hooks.js#L115 By the way: this reminds me, |
@mizzao oh man of course... the weak dependency makes it a non-issue. Back when I first wrote collection hooks, the package system didn't have weak dependency support so that was my workaround. Good call! I'm going to do this now before I forget |
I jumped the gun, forgot that weak dependency loads in the opposite order I needed. While I'm in the code I'll see what I can do regardless |
Hmm...you want |
I wish... then when As it stands, the fix I'm implementing right now uses the discouraged |
I just opened an issue requesting support for a reverse weak dependency in the new package system. |
@mizzao nice, thank you. I just released a new version of collection-hooks with the IE8 fix from @davidworkman9 and the @dburles can you check to see if |
hey @matb33 just tried it out, works great here :) |
Meteor.users.helpers is undefined
The text was updated successfully, but these errors were encountered: