StableEvent
On load
Overview
Fires once when a page is opened (in preview and live apps, not in the editor).
Purpose
Initialise page state, show a welcome message, redirect based on the user's role, or record a visit.
Inputs
- Supported by: Page (the page's root component — select the page itself in the layers panel).
Configuration
- Keep it light: long-running actions delay what the user sees. For data, bind components directly instead of loading in On load.
Outputs
- No event data. Page parameters, query parameters and the current user are available as usual.
Example
Role-based landing
Example
Page “Home” › On load:
1. If / else Current user › role is “Customer”
Then: Go to page My bookingsErrors
- Errors show a message but the page still renders.
Limitations
- Fires on every visit of the page, including when navigating back to it.