{"action":"opened","issue":{"url":"https://api.github.com/repos/rackt/react-router/issues/2820","labels_url":"https://api.github.com/repos/rackt/react-router/issues/2820/labels{/name}","comments_url":"https://api.github.com/repos/rackt/react-router/issues/2820/comments","events_url":"https://api.github.com/repos/rackt/react-router/issues/2820/events","html_url":"https://github.com/rackt/react-router/issues/2820","id":124593881,"number":2820,"title":"Add deprecation error for replaceState in onEnter callback","user":{"login":"mattkrick","id":5514175,"avatar_url":"https://avatars.githubusercontent.com/u/5514175?v=3","gravatar_id":"","url":"https://api.github.com/users/mattkrick","html_url":"https://github.com/mattkrick","followers_url":"https://api.github.com/users/mattkrick/followers","following_url":"https://api.github.com/users/mattkrick/following{/other_user}","gists_url":"https://api.github.com/users/mattkrick/gists{/gist_id}","starred_url":"https://api.github.com/users/mattkrick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattkrick/subscriptions","organizations_url":"https://api.github.com/users/mattkrick/orgs","repos_url":"https://api.github.com/users/mattkrick/repos","events_url":"https://api.github.com/users/mattkrick/events{/privacy}","received_events_url":"https://api.github.com/users/mattkrick/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-01-02T14:45:13Z","updated_at":"2016-01-02T14:45:13Z","closed_at":null,"body":"Similar to `Link` ( https://github.com/rackt/react-router/blob/fae5518618da0329e17e1ba5dd45dd00630d1760/modules/Link.js#L109 ) it'd be nice to show an error on the `replaceState` arg that gets passed to the `onEnter` callback. Currently, it's silently failing, which isn't great. Should be as easy as checking for the number of args. \r\n\r\neg throw error on `replaceState(null, '/login', {next});`"}}