Skip to main content

STATE_INJECT_KEY

Constant STATE_INJECT_KEY 

Source
pub const STATE_INJECT_KEY: &str = "$webui";
Expand description

Reserved top-level state key carrying host-supplied boundary HTML.

The leading $ marks this key as reserved host metadata rather than ordinary application state.

Recognized members, each an optional string:

MemberEmitted at
headEndimmediately before </head>
bodyStartimmediately after <body>
bodyEndimmediately before </body>

The key is always honored — it is part of the render state the host already supplies — and is stripped from the client hydration payload.