How to use reactive var on server side?


#1

the ReactiveVar is only available to the client, how can I use it on the server side?


#2

You can use it inside a Tracker.
But, you should try to avoid the use of such APIs in the server.

That’s lead to lot of performance issues due to re-runs. Better to avoid when designing your app.


#3

Or, if you want to go full reactive server-side, you can use this server-side autorun package. If makes things magical.