react-url-query icon indicating copy to clipboard operation
react-url-query copied to clipboard

Not call history.push, history.replace if location not changed

Open vzak-profimedia opened this issue 7 years ago • 0 comments

Hi, thanks for this library.

We faced problem with unnecessary calling of history.push, replace, when url query not changed.

For example if we call replaceInUrlQuery("param", null); and the param is not in query, then this method should ignore calling of history.replace.

What do you think about it?

Now, we must control each replaced param in url, if exists or if value equals, to not call method replaceInUrlQuery. And it would be great, to do this control in your library.

Best

vzak-profimedia avatar Jan 04 '18 07:01 vzak-profimedia