Lets say we subscribe like this

const sub = Meteor.subscribe('sub');

then we check if the sub is ready

const localCollection = new Mongo.Collection(null);if (sub.ready()) {
// then we dump into a local collection
localCollection.insert(Example.find().fetch());
}

now we can interface our state on the client purely through this local collection and updates to it do not sync to the server until you handle this manually.

Software Engineer at Workpop, Inc.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store