I have a Minimongo collection which I insert documents into manually on the client side. Like below:
I have a problem when the app goes offline and the client reconnects again. Then my local collection is cleared. I guess Meteor has some way to check which data I have subscribed to and when syncing again Meteor think the document should be removed. But, for this specific case I want to disable that feature.
Any idea how to solve that?
Create a new collection:
MyCollection = new Mongo.Collection("myCollection");
Then in the browser console, insert a document manually and then force a disconnect/reconnect:
Please try to create a “really local” Collection? If you create a collection on the client with a name, then Meteor expects it to represent a collection on the server (in the old days there were even allow&deny to handle direct inserts from the client without methods…).