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

@@ -2,7 +2,7 @@
/// to the child router that maps child routes to root routes and vice versa.
use dioxus_lib::prelude::*;
use crate::prelude::Routable;
use crate::Routable;
/// Maps a child route into the root router and vice versa
// NOTE: Currently child routers only support simple static prefixes, but this
+1 -1
View File
@@ -1,4 +1,4 @@
use crate::prelude::{outlet::OutletContext, *};
use crate::{outlet::OutletContext, *};
use dioxus_lib::prelude::*;
/// An outlet for the current content.
+3 -7
View File
@@ -1,10 +1,6 @@
use dioxus_lib::prelude::*;
use crate::{
prelude::{provide_router_context, Outlet},
routable::Routable,
router_cfg::RouterConfig,
};
use crate::{provide_router_context, routable::Routable, router_cfg::RouterConfig, Outlet};
/// The props for [`Router`].
#[derive(Props)]
@@ -38,7 +34,7 @@ impl<R: Clone> PartialEq for RouterProps<R> {
/// A component that renders the current route.
pub fn Router<R: Routable + Clone>(props: RouterProps<R>) -> Element {
use crate::prelude::{outlet::OutletContext, RouterContext};
use crate::{outlet::OutletContext, RouterContext};
use_hook(|| {
provide_router_context(RouterContext::new(props.config.call(())));
@@ -46,7 +42,7 @@ pub fn Router<R: Routable + Clone>(props: RouterProps<R>) -> Element {
#[cfg(feature = "streaming")]
use_after_suspense_resolved(|| {
dioxus_fullstack_hooks::prelude::commit_initial_chunk();
dioxus_fullstack_hooks::commit_initial_chunk();
});
use_hook(|| {