When using RouteService::set_route() with web-sys, it serializes the state to a string, and then deserializes it again into a JsValue. I think it should be possible to go directly from the state to JsValue using JsValue::from_serde().
There are other similar instances of this within RouteService.
When using
RouteService::set_route()withweb-sys, it serializes the state to a string, and then deserializes it again into aJsValue. I think it should be possible to go directly from the state toJsValueusing JsValue::from_serde().There are other similar instances of this within
RouteService.