Live state

The Live state panel displays real-time runtime values for the open page or component while you test it in Interactive mode. As you click buttons, fill out forms, trigger workflows, or fetch APIs on the canvas, every value in the panel updates live so you can verify behavior and debug logic without leaving the editor.

The Nordcraft editor in Interactive mode with the Live state panel open on the right, showing live runtime values and the Event log.

Opening the live state panel

The Live state panel appears on the right side of the editor whenever you enter Interactive mode (test mode):

  1. 1
    Open any page or component in the editor
  2. 2
    Press Cmd/Ctrl + I, or click the Test project button (play icon) in the top bar

Entering Interactive mode hides the left sidebar and the standard editing panels and opens the Live state panel on the right. You can drag the left edge of the panel to resize it to fit wider values.

To exit Interactive mode and return to your previous mode, press Cmd/Ctrl + I again or click the pause icon in the top bar.

Info

The Live state panel is read-only. To edit attribute test values, variable initial values, or API configurations, exit Interactive mode and update them in the data panel.

Sections

The Live state panel organizes runtime data into sections tailored to whether you are viewing a page or a component. Section headers stick to the top or bottom of the panel as you scroll, and clicking any section header scrolls directly to that section.

Page

This section appears for pages only and shows live routing data:

  • URL: The resolved path and active query string for the page (for example, /users/42?tab=info)
  • Path parameters: Appears when the page route defines dynamic path parameters, showing each parameter's current value
  • Query parameters: Appears when the page route defines query parameters, showing each parameter's current value

Attributes

This section appears for components only. It lists all defined attributes alphabetically with their current values.

Variables

Lists all variables on the open page or component alphabetically and updates in real time as workflows and actions modify them.

APIs

Lists all APIs on the open page or component alphabetically, showing each API's current state object including loading status, response data, and errors.

Contexts

This section appears for components only, when the component subscribes to at least one context. Each subscribed context is listed alphabetically with the live values of its exposed formulas.

Inspecting and copying values

Each row displays an icon for its data type, its name, and its current value:

  • Primitive values: Strings, numbers, booleans, dates, and null values display inline. Multi-line strings display up to 8 lines before truncating.
  • Objects and arrays: Collapsed by default. Hover over or focus a row to see its item count (such as {3} for an object or [5] for an array), and click the row to expand or collapse nested properties. Large objects and arrays load 20 entries at a time; click Show more to load additional entries.
  • Copying values: Hover over or focus any row (including nested properties inside expanded objects or arrays) and click the copy icon, or press Enter or Space when the copy button is focused. Strings copy as plain text, and objects and arrays copy as formatted JSON.

Event log

When you test a component that defines custom events, an Event log section appears pinned to the bottom of the Live state panel.

  • Expand and collapse: The event log is expanded by default to the lower portion of the panel. Click the Event log header bar to collapse or expand it.
  • Session counter: The badge next to the heading displays how many events have been triggered since you entered Interactive mode. Until an event fires, the log shows No events yet.
  • Event entries: Triggered events appear newest first. Each row shows the timestamp (hover over the time to view the full timestamp with timezone), the event name, and the event payload rendered in the same expandable, copyable tree view as other live values.
Edit article
Help Forum