mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-11-27 06:30:20 +00:00
fix: use weak instead of sync
This commit is contained in:
parent
7ce07e3164
commit
1c3f4b2bc4
1 changed files with 1 additions and 1 deletions
|
@ -415,7 +415,7 @@ mod web {
|
|||
}
|
||||
}
|
||||
|
||||
fn attach_listeners(&self, svc: std::sync::Weak<crate::RouterService>) {
|
||||
fn attach_listeners(&self, svc: std::rc::Weak<crate::RouterService>) {
|
||||
self._listener.set(Some(EventListener::new(
|
||||
&web_sys::window().unwrap(),
|
||||
"popstate",
|
||||
|
|
Loading…
Reference in a new issue