rustfmt
This commit is contained in:
2 files changed
+2
-3
No files matched your search
@@ -26,8 +26,7 @@ pub(crate) fn update_history(window: &Window, history: &History) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub(crate) fn update_scroll(window: &Window, history: &History) -> AnimationFrame
|
pub(crate) fn update_scroll(window: &Window, history: &History) -> AnimationFrame {
|
||||||
{
|
|
||||||
let ScrollPosition { x, y } = history
|
let ScrollPosition { x, y } = history
|
||||||
.state()
|
.state()
|
||||||
.map(|state| serde_wasm_bindgen::from_value(state).unwrap_or_default())
|
.map(|state| serde_wasm_bindgen::from_value(state).unwrap_or_default())
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
use dioxus::prelude::{ScopeId, ScopeState};
|
use dioxus::prelude::{ScopeId, ScopeState};
|
||||||
use dioxus_router_core::Navigator;
|
use dioxus_router_core::Navigator;
|
||||||
|
|
||||||
use crate::{RouterError, utils::use_router_internal::use_router_internal};
|
use crate::{utils::use_router_internal::use_router_internal, RouterError};
|
||||||
|
|
||||||
/// A hook that allows for programmatic navigation.
|
/// A hook that allows for programmatic navigation.
|
||||||
///
|
///
|
||||||
|
|||||||
Reference in new issue
Block a user