Skip to content
Verified

Globals

The one program every project has exactly one of, for state the whole app shares.

Every Xuda project has exactly one Globals program. It holds the constants, shared variables and startup logic that any Component, Get Data, Set Data, Batch, JavaScript or API program in the project can read, so a value that means the same thing everywhere (the signed-in user, a feature flag, the active campus) has one home instead of being copied into every screen that needs it. Whatever runAt says elsewhere, Globals always runs on the client.

Full reference: Globals.