On this page
Live state reference
Declare live values and read connection status.
Before you begin: State syntax reference.
Live State Keys
Append .live to a state key to keep its saved-data value current. A default comes before the modifier.
Add this configuration inside your page’s {STATE} declaration. Inspect state shows its configuration; live queries and saved data run against your local site. Try a complete FQL page →
The public paths are $state.messages, $state.product, and $state.productName. .live is declaration metadata, not part of the key. $live selector options, modifiers before defaults, repeated modifiers, and unknown modifiers are invalid.
All live keys on a page share one managed connection. Frontbacked combines selections that depend on the same saved data, performs one fresh request when they intersect, and applies the current visitor authentication and FRL permissions to that request. $now does not tick by itself; .live reacts to saved data changes.
Read live status values from $status.<statePath> or Frontbacked.live.status(path):
| Status | Meaning |
|---|---|
loading | The live selection is loading or applying a fresh result. |
live | The page is connected for saved-data changes. |
reconnecting | Frontbacked is retrying after an interruption. |
error | The latest live error, or null. |
changedOn | ISO timestamp of the latest lifecycle update. |
Frontbacked.live.isConnected() returns the page-level connection state. Frontbacked keeps the last rendered data during an interruption and reloads it only when a saved-data change was missed. The page also dispatches frontbacked:live-update after fresh live data has been rendered.
Continue with Event bindings reference.