Server-Side Reactivity in Meteor
Summary of my bookmarked Github repositories from May 30th, 2015
Github repositories
- Diggsey/meteor-reactive-publish
"reactive-publish" is a deprecated package for enabling server-side reactivity in Meteor.publish. It suggests using lighter alternatives like "publish-composite" and "publish-with-relations." By replacing "Meteor.publish" with "Meteor.reactivePublish," the publish function will be rerun whenever its dependencies change. The package extends "Meteor.Collection.Cursor" to support reactivity on the server, similar to the client. It provides an example code snippet that ensures published collections contain only the items visible to the user, based on their team and visible items. The package automatically tracks document IDs to send only necessary changes to subscribed clients during computation reruns.