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,6 +1,5 @@
use dioxus_lib::prelude::*;
use crate::prelude::*;
use crate::RouterContext;
use dioxus_lib::core::{try_consume_context, use_hook};
/// A private hook to subscribe to the router.
///
@@ -8,7 +7,7 @@ use crate::prelude::*;
/// single component, but not recommended. Multiple subscriptions will be discarded.
///
/// # Return values
/// - [`None`], when the current component isn't a descendant of a [`Router`] component.
/// - [`None`], when the current component isn't a descendant of a [`crate::Router`] component.
/// - Otherwise [`Some`].
pub(crate) fn use_router_internal() -> Option<RouterContext> {
use_hook(try_consume_context)