funcool / funcool/bide

query params keep on getting added to the end

Open
#23 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
JavaScript
Stars
132
Forks
17
PR merge metrics
No merged PRs in 30d

Description

I'm calling `navigate!` with the same `route` and `params`, but changing the 3rd argument, the `query`, causes a new set of query params to be added to the end of the URL. (instead of clearing out the previous keys).

For example, from the README if I do
```
(r/navigate! router :myapp/user-by-id {:id 2} {:foobar 1})
;; => "/api/users/2?foobar=1"

(r/navigate! router :myapp/user-by-id {:id 2} {:foobar 2})
;; => "/api/users/2?foobar=1?foobar=2"

```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.