meteor-flux-helpers icon indicating copy to clipboard operation
meteor-flux-helpers copied to clipboard

Have trackCollection() pass the collection to the callback

Open yched opened this issue 9 years ago • 1 comments

Woould be handy if trackCollection() passed the collection to the callback.

This allows using a single redux action to displatch all "collection changed" events. The reducers can then check if the collection._name is the one that interests them.

yched avatar Dec 13 '15 13:12 yched

I'd welcome a PR if there was a backwards compatible way to do this (perhaps the next param?) Also including an example in the readme would be needed.

Perhaps you could even have a trackCollections method and it would take an array of collections?

AdamBrodzinski avatar Dec 14 '15 16:12 AdamBrodzinski