add mut to router_agent
@@ -175,7 +175,7 @@ where
fn create(props: Self::Properties, link: ComponentLink<Self>) -> Self {
let callback = link.callback(Msg::UpdateRoute);
- let router_agent = RouteAgentBridge::new(callback);
+ let mut router_agent = RouteAgentBridge::new(callback);
router_agent.send(RouteRequest::GetCurrentRoute);
Router {
