| Crates.io | dioxus-fullstack-core |
| lib.rs | dioxus-fullstack-core |
| version | 0.7.3 |
| created_at | 2025-10-08 07:24:18.773975+00 |
| updated_at | 2026-01-17 03:28:54.971606+00 |
| description | Hooks for serializing futures, values in dioxus-fullstack and other utilities |
| homepage | https://dioxuslabs.com |
| repository | https://github.com/DioxusLabs/dioxus/ |
| max_upload_size | |
| id | 1873582 |
| size | 109,529 |
Dioxus-fullstack-core provides types, traits, hooks, contexts for dioxus-fullstack. Libraries that need to integrate with dioxus-fullstack should rely on this crate instead of the full-fledged renderer for quicker build times.
To start using this crate, you can run the following command:
cargo add dioxus-fullstack-hooks
Then you can use hooks like use_server_future in your components:
use dioxus::prelude::*;
fn App() -> Element {
let mut article_id = use_signal(|| 0);
// `use_server_future` will spawn a task that runs on the server and serializes the result to send to the client.
// The future will rerun any time the
// Since we bubble up the suspense with `?`, the server will wait for the future to resolve before rendering
let article = use_server_future(move || fetch_article(article_id()))?;
rsx! {
"{article().unwrap()}"
}
}
async fn fetch_article(id: u32) -> String {
format!("Article {}", id)
}