{"action":"created","issue":{"url":"https://api.github.com/repos/rackt/react-router/issues/1231","labels_url":"https://api.github.com/repos/rackt/react-router/issues/1231/labels{/name}","comments_url":"https://api.github.com/repos/rackt/react-router/issues/1231/comments","events_url":"https://api.github.com/repos/rackt/react-router/issues/1231/events","html_url":"https://github.com/rackt/react-router/issues/1231","id":80713165,"number":1231,"title":"Should getQuery() return a clone?","user":{"login":"kjs3","id":91996,"avatar_url":"https://avatars.githubusercontent.com/u/91996?v=3","gravatar_id":"","url":"https://api.github.com/users/kjs3","html_url":"https://github.com/kjs3","followers_url":"https://api.github.com/users/kjs3/followers","following_url":"https://api.github.com/users/kjs3/following{/other_user}","gists_url":"https://api.github.com/users/kjs3/gists{/gist_id}","starred_url":"https://api.github.com/users/kjs3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kjs3/subscriptions","organizations_url":"https://api.github.com/users/kjs3/orgs","repos_url":"https://api.github.com/users/kjs3/repos","events_url":"https://api.github.com/users/kjs3/events{/privacy}","received_events_url":"https://api.github.com/users/kjs3/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-26T00:02:44Z","updated_at":"2015-05-26T17:36:27Z","closed_at":null,"body":"I was storing/manipulating the return value of `getQuery()` from the Navigation mixin to generate pagination links. I had some weird behavior with other components using `getQuery()` and it took me awhile to realize I was manipulating the routers canonical query params.\r\n\r\nWhat are use cases where you need the router's actual query object and not just the values? "},"comment":{"url":"https://api.github.com/repos/rackt/react-router/issues/comments/105613876","html_url":"https://github.com/rackt/react-router/issues/1231#issuecomment-105613876","issue_url":"https://api.github.com/repos/rackt/react-router/issues/1231","id":105613876,"user":{"login":"tmcw","id":32314,"avatar_url":"https://avatars.githubusercontent.com/u/32314?v=3","gravatar_id":"","url":"https://api.github.com/users/tmcw","html_url":"https://github.com/tmcw","followers_url":"https://api.github.com/users/tmcw/followers","following_url":"https://api.github.com/users/tmcw/following{/other_user}","gists_url":"https://api.github.com/users/tmcw/gists{/gist_id}","starred_url":"https://api.github.com/users/tmcw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmcw/subscriptions","organizations_url":"https://api.github.com/users/tmcw/orgs","repos_url":"https://api.github.com/users/tmcw/repos","events_url":"https://api.github.com/users/tmcw/events{/privacy}","received_events_url":"https://api.github.com/users/tmcw/received_events","type":"User","site_admin":false},"created_at":"2015-05-26T17:36:27Z","updated_at":"2015-05-26T17:36:27Z","body":":+1: I'd support a clone, or `Object.freeze` on the results of both `getQuery()` and `getParams()` - it's unfortunately pretty easy to accidentally modify them in-place."}}