This commit is contained in:
Adrian Wannenmacher 2022-12-16 12:10:49 +01:00
parent 053dc6fa3e
commit 75357e974d
No known key found for this signature in database
GPG key ID: 19D986ECB1E492D5
2 changed files with 2 additions and 3 deletions

View file

@ -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
.state()
.map(|state| serde_wasm_bindgen::from_value(state).unwrap_or_default())

View file

@ -1,7 +1,7 @@
use dioxus::prelude::{ScopeId, ScopeState};
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.
///