Portal Community

Opening the State Inspector

The State Inspector opens as a resizable panel at the bottom of the canvas (or as a floating overlay).

What the State Inspector Shows

Variables

All app variables with their current resolved values. Editable inline — change a variable value to see how the canvas updates reactively.

Route Params

Current route.* token values. In the builder, you can seed route params with test values (e.g., set route.id = "123" to test a detail page).

Context

The current context.* values: userId, tenantId, name, roles. Reflects your actual authenticated session.

Token Resolution Log

A log of every {{ }} expression resolved on the current page — shows the expression, its resolved value, and any resolution errors.

Seeding Test Values

The State Inspector allows you to manually set variable and route param values for testing purposes. This is especially useful for testing detail pages (which require a route.id) without navigating to them via a grid row click:

// In the State Inspector, seed test route params:
route.id = "lead-456"
route.status = "active"

// Now the canvas renders as if the URL was /leads/lead-456?status=active
// Widgets using {{ route.id }} will show "lead-456"
// DataGrid will fetch data for this specific id

Token Resolution Log

The resolution log shows every token evaluated during the last render cycle:

ColumnDescription
ExpressionThe raw token expression as written in the config
Resolved ValueThe actual value after resolution
SourceWhere the value came from (variable, route, context, service)
WidgetWhich widget used this token
StatusOK (green), Pending (yellow for async), Error (red)
Debugging Binding Errors

If a widget shows a binding error (red border on canvas), open the State Inspector and check the Token Resolution Log. Errors include "undefined variable", "service call failed", and "type mismatch" — each with a tooltip explaining the root cause and suggested fix.