Skip to content

Is there a way to re-fetch and merge server collection changes into minimongo multiple times via a method call? #11

@Avijobo

Description

@Avijobo

Hi,

I am a bit confused with the capabilities of this package. The readme states:

"With jam:pub-sub, you use Meteor.publish.once and the same Meteor.subscribe to have the data fetched via a Meteor Method and merged automatically in Minimongo so you can work with it as you're accustomed to."

Besides the initial goal of fetching the data once, this let me believe that I can also fetch the data multiple times via a method call, however I don't quite understand how. Is it just a matter of repeating "Meteor.publish.once" in a method call, with e.g. a different query filter?

If this would be possible, will the updated minimongo collections also re-trigger corresponding reactive computations on the client after each re-fetch?

Or am I misinterpreting this, and isn't this possible at all?

If this would work, this could give me a more efficient alternative to conditional reactive (pipeline) publications.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions