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

@@ -41,7 +41,7 @@ impl LiveviewRouter for Router {
fn with_virtual_dom(
self,
route: &str,
app: impl Fn() -> dioxus_core::prelude::VirtualDom + Send + Sync + 'static,
app: impl Fn() -> dioxus_core::VirtualDom + Send + Sync + 'static,
) -> Self {
let view = crate::LiveViewPool::new();
+1 -1
View File
@@ -33,7 +33,7 @@ impl<R: LiveviewRouter> Config<R> {
}
/// Create a new configuration for the LiveView server.
pub fn with_app(mut self, app: fn() -> dioxus_core::prelude::Element) -> Self {
pub fn with_app(mut self, app: fn() -> dioxus_core::Element) -> Self {
self.router = self.router.with_app(&self.route, app);
self
}
+1 -1
View File
@@ -1,4 +1,4 @@
use dioxus_core::prelude::queue_effect;
use dioxus_core::queue_effect;
use dioxus_core::ScopeId;
use dioxus_document::{
create_element_in_head, Document, Eval, EvalError, Evaluator, LinkProps, MetaProps,
+1 -1
View File
@@ -1,4 +1,4 @@
use dioxus_core::prelude::spawn;
use dioxus_core::spawn;
use dioxus_document::Eval;
use dioxus_history::History;
use serde::{Deserialize, Serialize};
+2 -1
View File
@@ -5,7 +5,8 @@ use crate::{
query::{QueryEngine, QueryResult},
LiveViewError,
};
use dioxus_core::prelude::*;
use dioxus_core::{provide_context, Element, Event, ScopeId, VirtualDom};
use dioxus_html::{EventData, HtmlEvent, PlatformEventData};
use dioxus_interpreter_js::MutationState;
use futures_util::{pin_mut, SinkExt, StreamExt};