One logic layer to rule them all.

The Globals is logic unit in the Xuda platform functions as a universal context layer for the entire application. It serves as a centralized mechanism for defining constants, shared variables, and reusable functions that can be referenced by any program, component, or workflow within the system. This unified design promotes consistency in application logic, minimizes code duplication, and ensures that commonly used values and utilities are maintained in a single, authoritative location. Architecturally, the Global logic unit is composed of two primary sections. The first is the dataset definition, which includes globally scoped fields such as constants, configuration parameters, and system-level flags. These fields can be injected into or referenced by multiple programs, enabling interoperability between components and simplifying the management of shared parameters across complex workflows. The second section is the event block, which contains globally accessible programmatic logic. This includes lifecycle workflow (e.g., on_load), utility functions (e.g., date formatting, unique ID generation), and event-driven actions that respond to user interaction or system events. Since this logic is decoupled from any single program or component, it provides a flexible and maintainable way to define behaviors that apply universally throughout the application. In summary, the global logic unit enhances modularity, reusability, and architectural integrity. By allowing all parts of the application to reference shared logic and centralized values, it empowers developers to build consistent, scalable, and maintainable solutions with reduced overhead and increased alignment across the entire application ecosystem.
Available in plans
  • free
  • pro
  • team
  • agency
  • enterprise
FAQs

Globals is a universal context layer for the entire application, storing shared variables, constants, and functions that can be referenced anywhere in the system.

They promote consistency, reduce code duplication, and centralize key values and logic for easier management across applications.

Globals consist of two sections: dataset definitions (constants, configuration, flags) and event blocks (utility functions, lifecycle workflows, event-driven actions).

They define globally scoped fields—such as constants and system-level parameters—that can be injected into or referenced by multiple programs and components.

It contains globally accessible programmatic logic, including lifecycle workflows, utility functions, and actions triggered by system or user events.

Yes. Any program, component, or workflow can reference values and logic defined in Globals, ensuring interoperability across the application.

By centralizing logic and shared values, Globals reduce redundancy and simplify updates, ensuring consistency across all parts of the app.

Functions such as date formatting, unique ID generation, or reusable validation logic can be placed in Globals for universal access.

Use Globals when you need constants, functions, or parameters that apply across multiple workflows, ensuring alignment and reusability.

They enable modularity and reusability by serving as a single source of truth, making applications easier to scale, extend, and maintain.

Develop. Deploy. Stay Productive.

Xuda is the platform for frontend developers, providing the speed and reliability innovators need to create at the moment of inspiration.

Schedule a demo