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:
1 parent
54d465a7b5
commit
4f1d039bad
140 files changed
+374
-477
No files matched your search
@@ -4,10 +4,7 @@ use crate::{
|
||||
assets::*, ipc::UserWindowEvent, shortcut::IntoAccelerator, window, DesktopContext,
|
||||
HotKeyState, ShortcutHandle, ShortcutRegistryError, WryEventHandler,
|
||||
};
|
||||
use dioxus_core::{
|
||||
prelude::{consume_context, use_hook_with_cleanup},
|
||||
use_hook, Runtime,
|
||||
};
|
||||
use dioxus_core::{consume_context, use_hook, use_hook_with_cleanup, Runtime};
|
||||
|
||||
use dioxus_hooks::use_callback;
|
||||
use tao::{event::Event, event_loop::EventLoopWindowTarget};
|
||||
@@ -22,7 +19,7 @@ pub fn use_window() -> DesktopContext {
|
||||
pub fn use_wry_event_handler(
|
||||
mut handler: impl FnMut(&Event<UserWindowEvent>, &EventLoopWindowTarget<UserWindowEvent>) + 'static,
|
||||
) -> WryEventHandler {
|
||||
use dioxus_core::prelude::current_scope_id;
|
||||
use dioxus_core::current_scope_id;
|
||||
|
||||
// Capture the current runtime and scope ID.
|
||||
let runtime = Runtime::current().unwrap();
|
||||
|
||||
Reference in new issue
Block a user