Mirror (Real-Time Preview)
Mirror is a browser-based environment that simulates supported clients. It reads the current editor configuration directly and does not require compilation or packaging, making it useful for checking pages, data, and interactions before publishing.
Mirror is not the pre-release build created during publishing. Features that depend on a physical device, a client-specific capability, or the final compiled output must still be verified with a pre-release build.
Open Mirror
You can start from the project home page or a specific page:
- Click Mirror in the upper-right corner of the editor to start from the home page.
- To start from another page, select it on the canvas and click Mirror in the page toolbar.
- In the bottom toolbar, select the client environment and device size, or enter a custom resolution.
Set initialization data
Use Initialize config to provide the data required when the page starts. Available settings depend on the selected page and may include:
- Page inputs
- Path parameters
- Query parameters
- Client variables
- Mock data
After changing the initialization settings, reload Mirror to initialize the page with the new values.
Simulate a user
Click Simulate login, then select or create a test user. Switching users lets you verify the page with different authentication states, user data, and role permissions.
When simulating users, check that:
- The page reads the expected current user data
- Data sources respect the user’s permissions
- Each role sees the correct content
- Actions and Actionflows use the correct user context
Debug a page
Click the wrench icon to enter Debug Mode, then select a component to inspect its current data state. Use this together with initialization settings and simulated users to verify:
- Data-binding results
- Page parameters and client variables
- Conditional visibility
- Component state before and after an interaction
If you change a parameter, variable, or test user, reload Mirror before checking the result again.
Pre-publish checklist
Before publishing, use Mirror to verify that:
- Pages render correctly in the target client environment and device size.
- Page inputs, path parameters, and query parameters are passed correctly.
- Data and permissions behave as expected for signed-in, signed-out, and role-specific users.
- Data sources, frontend actions, and Actionflows run correctly.
- Success, failure, and empty-data branches produce the expected result.
Mirror and pre-release builds
| Mirror | Pre-release build | |
|---|---|---|
| How it runs | Simulates a client environment in the browser | Compiles a client build |
| Packaging required | No | Yes |
| Configuration used | Current editor configuration | Frontend and backend configuration included in the publish operation |
| Best for | Pages, data, parameters, user states, and common interactions | Compiled output, client-specific capabilities, and the actual runtime environment |
If Mirror differs from the target client, first compare the initialization data, simulated user, and selected client environment. For device capabilities or client-specific behavior, use the pre-release build as the source of truth.