Hey,
we synchronizing some MobX maps with our database. When we do a mass insert and use the debounce property, some documents are not available after insert. When I remove the debounce property, everything is working fine again.
Meteor.ddp.on('added', (payload) => {
[....]
collection.set(payload.id, newDoc);
if(payload.collection === "playlists") {
setTimeout(() => {
console.log(payload);
console.log(collection.get(payload.id));
},10000); // On some items we get undefined for the second call.
}
});
Hey, we synchronizing some MobX maps with our database. When we do a mass insert and use the debounce property, some documents are not available after insert. When I remove the debounce property, everything is working fine again.