How to use reactive var on server side?

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

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.

1 Like

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