mirror of
https://github.com/DioxusLabs/dioxus
synced 2025-02-17 06:08:26 +00:00
commit
1f6c0593b4
1 changed files with 1 additions and 1 deletions
|
@ -51,7 +51,7 @@ impl UseRoute {
|
|||
#[cfg(feature = "query")]
|
||||
pub fn query<T: serde::de::DeserializeOwned>(&self) -> Option<T> {
|
||||
let query = self.url().query()?;
|
||||
serde_urlencoded::from_str(query.strip_prefix('?').unwrap_or("")).ok()
|
||||
serde_urlencoded::from_str(query).ok()
|
||||
}
|
||||
|
||||
/// Get the first query parameter given the parameter name.
|
||||
|
|
Loading…
Add table
Reference in a new issue