diff --git a/router/src/history/params.rs b/router/src/history/params.rs index 917b9e006..baffa11eb 100644 --- a/router/src/history/params.rs +++ b/router/src/history/params.rs @@ -27,6 +27,10 @@ impl ParamsMap { self.0.get(key) } + pub fn remove(&mut self, key: &str) -> Option { + self.0.remove(key) + } + #[cfg(any(feature = "csr", feature = "hydrate", feature = "ssr"))] pub fn to_query_string(&self) -> String { use crate::history::url::escape;