Skip to content

peerlibrary/meteor-server-autorun

 
 

Repository files navigation

server-autorun

Meteor smart package which provides a fully reactive server-side Tracker.autorun. While Meteor does provide Tracker.autorun on the server, it is not officially supported on the server and it has many limitations. For example, it cannot be used with fibers-enabled synchronous (blocking) code. This implementation cooperates nicely with fibers and preserves Meteor environment variables where necessary, allowing you to run any reactive code. Now you can really share the same code between client and server.

Adding this package to your Meteor application will override Tracker.autorun on the server with this implementation.

Server side only.

See also related packages:

Installation

meteor add peerlibrary:server-autorun

Acknowledgments

This package is based on the great work by Diggory Blake who made the first implementation.