Turn off notifications for Meteor collections -


how tell meteor stop publishing changes on collection (for moment)? how tell resume , collection changed?

basically (on server):

people = new meteor.collection("people") insertpeople = ->   // don't notify clients of following changes   // insert bunch of people people collection   // resume notifications 

put flag in each document, 'updating'. add new ones set true; render template css class hides them based on field. when ready, update collection updating: false. visible pretty quickly.

this being said, there events can plug make transitions more pleasant/animated. didn't think asking that, may better answer.

to comment: inserting template additional document triggers dom changes, expensive, , device has figure out how display. updating property requires second part, device has figure out how display.


Comments

Popular posts from this blog

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

html - How to style widget with post count different than without post count -

url rewriting - How to redirect a http POST with urlrewritefilter -