-
Notifications
You must be signed in to change notification settings - Fork 5
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
Compatibility with added/changed/removed in publish #9
Comments
See the same question in publish-composite. |
@steph643 It's partially closed: you can use these three callbacks in top-level publish function, you may take a look at I'll get back on this in a day or two. |
Just for me: do not forget about documenation and examples. |
… matter anymore; more tests for first-level callbacks
Wrapper classes: getActiveItems() function was added SingleCollectionCallbacksWrapper: stop() and onStop() methods were added CollectionItem.updateChildren: now it uses getActiveItems() function and adds CallbacksWrapper for dependency function smartPublish: now it calls wrapper.stop() instead of wrapper.observer.stop(), CallbacksWrapper is called too
@steph643 Would you mind updating to the last version - v0.2.0 and testing it? |
@steph643 feel free to re-open this issue or create a new one in case of any problems |
@yeputons, sorry I had no time trying this. |
As you know, there are two methods to implement a publish function:
this.added()
/this.changed()
/this.removed()
, usually fromcursor.observeChanges()
callbacksLet's consider these three use cases for method 2:
a. You want to add a field to a document before publication
b. You want to remove a field from a document before publication
c. You want to do both, for example to combine several secret fields into one public field
Does meteor-smart-publish allow for these three use cases?
The text was updated successfully, but these errors were encountered: