Question when updating global variables in server module

The problem is that the server code is reloaded every time you make a call to the server and all the globals are lost… unless you check the “keep server running” option, in which case the interpreter is not restarted at every call. But it still restarts once in a while, so you can’t rely on it.

Globals on the client side are reliable, because the interpreter starts when the app loads and they are kept until the browser is closed.

What is your use case for the globals?

2 Likes