pbeshai / react-url-query

A library for managing state through query parameters in the URL in React
https://pbeshai.github.io/react-url-query
MIT License
195 stars 38 forks source link

Feature request for removeInUrlQuery #60

Open botvsbot opened 6 years ago

botvsbot commented 6 years ago

Do you want to request a feature or report a bug? feature

What is the current behavior? There is no support currently to remove a query param from url query. How can this be done with the existing apis?

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem via https://jsfiddle.net or similar. It will be good to have an api to remove specified param(s) in url query

What is the expected behavior?

Which versions of react-url-query, and which browser and OS are affected by this issue? Did this work in previous versions of react-url-query?

pbeshai commented 5 years ago

Setting a parameter's value to null using replaceIn or pushIn should remove it from the query, but agreed it is not super clear.