What's the ideal way of referencing an existing job collection on the client side? Following the example I create my job collection like so:
if (Meteor.isServer) {
var myJobs = JobCollection('myJobQueue');
}
This also works on my client side only once when my component is first initialized but if I navigate back to my component I get a Error: There is already a collection named "myJobQueue.jobs".
But if the example client code we have again
if (Meteor.isClient) {
var myJobs = JobCollection('myJobQueue');
}
What's the ideal way of referencing an existing job collection on the client side? Following the example I create my job collection like so:
This also works on my client side only once when my component is first initialized but if I navigate back to my component I get a
Error: There is already a collection named "myJobQueue.jobs"
. But if the example client code we have again