Lets say we subscribe like this

then we check if the sub is ready

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.

Love podcasts or audiobooks? Learn on the go with our new app.

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
Abhi Aiyer

Abhi Aiyer

Software Engineer at Workpop, Inc.

More from Medium

Classical music is boring!

Recognizing COPD | 3 Early Warning Signs & What You Can Do About It

A Father’s Unconditional Love

Three Stupid Easy Ways To Make Yourself Luckier (According to Scott Adams, author of Dilbert)