Skip to main content

render_partial

Function render_partial 

Source
pub fn render_partial(
    protocol_json: &str,
    state_json: &str,
    entry_id: &str,
    request_path: &str,
    inventory_hex: &str,
) -> Result<String, JsValue>
Expand description

Produce a complete JSON partial response for client-side navigation.

Combines application state, route templates, inventory, request path, and matched route chain into a single JSON string: {"state":{...},"templates":[...],"inventory":"...","path":"...","chain":[...]}.

Host servers return this directly — no assembly required.