clean up prelude (#4416)

* clear away prelude on dioxus

* clippy

* wip - drop prelude from dioxus-html

* docs clippy

* wip

* more fixe

* delete all preludes

* doc...

* better export

* merge some imports

* fewer global imports

* global incremental renderer

* fix cargo doc
This commit is contained in:
Jonathan Kelley authored and GitHub committed 2025-07-16 16:04:13 -07:00
1 parent 54d465a7b5
commit 4f1d039bad
140 files changed
+374 -477

No files matched your search

+1 -1
View File
@@ -4,7 +4,7 @@ use std::{
str::FromStr,
};
use dioxus_lib::prelude::{dioxus_core::CapturedError, RenderError};
use dioxus_lib::core::{CapturedError, RenderError};
use serde::{de::DeserializeOwned, Serialize};
use server_fn::{
codec::JsonEncoding,
+11 -14
View File
@@ -12,19 +12,16 @@ mod error;
#[cfg(all(feature = "web", feature = "document"))]
pub use web::FullstackWebDocument;
#[cfg(feature = "server")]
pub use dioxus_server::*;
pub use dioxus_fullstack_hooks::history::FullstackHistory;
/// A prelude of commonly used items in dioxus-fullstack.
pub mod prelude {
pub use dioxus_fullstack_hooks::prelude::*;
pub use crate::error::{ServerFnError, ServerFnResult};
pub use dioxus_server_macro::*;
pub use server_fn::{self, ServerFn as _};
#[cfg(feature = "server")]
pub use dioxus_server::prelude::*;
}
pub use crate::error::{ServerFnError, ServerFnResult};
pub use dioxus_fullstack_hooks::*;
#[cfg(feature = "server")]
pub use dioxus_server::*;
pub use dioxus_server_macro::*;
pub use server_fn::{
self, client,
client::{get_server_url, set_server_url},
codec, server, BoxedStream, ContentType, Decodes, Encodes, Format, FormatType, ServerFn as _,
ServerFn, Websocket,
};