Function commit_initial_chunk

Source
pub fn commit_initial_chunk()
Expand description

Commit the initial chunk of the response. This will be called automatically if you are using the dioxus router when the suspense boundary above the router is resolved. Otherwise, you will need to call this manually to start the streaming part of the response.

On the client, this will do nothing.

ยงExample

fn App() -> Element {
    // This will start streaming immediately after the current render is complete.
    use_hook(commit_initial_chunk);

    rsx! { Children {} }
}