3 replies
Jun '17

haojia321

I noticed Lists.todoCount in the example is written by leverageing another package tmeasday:publish-counts. Lists cursor will not have todoCount information so I’d like to know how to do Lists.todoCount without using any other package?

1 reply
Jun '17 ▶ haojia321

haojia321

I think i got answer from http://stackoverflow.com/a/10566873/1233018
Basically we need to create a temporary collection and that collection only contain _id and count.
But I have a question regarding above link. @sashko
Why we dont need if (!initializing){} for observeChanges.removed function?

1 reply
Jun '17 ▶ haojia321

haojia321

@sashko I have a question regarding above link.
Why we dont need if (!initializing){} for observeChanges.removed function?