fix: use weak instead of sync
This commit is contained in:
1 parent
7ce07e3164
commit
1c3f4b2bc4
1 file changed
+1
-1
@@ -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(
|
self._listener.set(Some(EventListener::new(
|
||||||
&web_sys::window().unwrap(),
|
&web_sys::window().unwrap(),
|
||||||
"popstate",
|
"popstate",
|
||||||
|
|||||||
Reference in new issue
Block a user