{"action":"created","issue":{"url":"https://api.github.com/repos/christianalfoni/react-addressbar/issues/2","labels_url":"https://api.github.com/repos/christianalfoni/react-addressbar/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/christianalfoni/react-addressbar/issues/2/comments","events_url":"https://api.github.com/repos/christianalfoni/react-addressbar/issues/2/events","html_url":"https://github.com/christianalfoni/react-addressbar/issues/2","id":104495206,"number":2,"title":"First hash change","user":{"login":"Yomguithereal","id":2571951,"avatar_url":"https://avatars.githubusercontent.com/u/2571951?v=3","gravatar_id":"","url":"https://api.github.com/users/Yomguithereal","html_url":"https://github.com/Yomguithereal","followers_url":"https://api.github.com/users/Yomguithereal/followers","following_url":"https://api.github.com/users/Yomguithereal/following{/other_user}","gists_url":"https://api.github.com/users/Yomguithereal/gists{/gist_id}","starred_url":"https://api.github.com/users/Yomguithereal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Yomguithereal/subscriptions","organizations_url":"https://api.github.com/users/Yomguithereal/orgs","repos_url":"https://api.github.com/users/Yomguithereal/repos","events_url":"https://api.github.com/users/Yomguithereal/events{/privacy}","received_events_url":"https://api.github.com/users/Yomguithereal/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2015-09-02T14:36:55Z","updated_at":"2015-09-03T09:30:10Z","closed_at":null,"body":"Hello @christianalfoni, I was wondering if there was maybe something weird with your components in cases where you want the hash to be set by props. It seems that the first time it is changed, it will allow it which should not happen while subsequent changes will revert to the original correct prop.\r\n\r\n*Example*\r\n\r\n```jsx\r\nclass App extends Component {\r\n  onHashChange(url) {\r\n    const hash = location.hash;\r\n    console.log(hash);\r\n  }\r\n\r\n  render() {\r\n    return (\r\n      <div id=\"main\">\r\n        <Addressbar onlyHash={true}\r\n                    onChange={this.onHashChange}\r\n                    value={this.props.url} />\r\n        Hello World!\r\n      </div>\r\n    );\r\n  }\r\n}\r\n\r\nrender(<App url=\"/#/one\" />, ...);\r\n\r\n// If I manually change the url to /#/two, it will switch whereas it should not\r\n// Then if I manually change the url to /#/three it correctly goes to /#/one\r\n```"},"comment":{"url":"https://api.github.com/repos/christianalfoni/react-addressbar/issues/comments/137390648","html_url":"https://github.com/christianalfoni/react-addressbar/issues/2#issuecomment-137390648","issue_url":"https://api.github.com/repos/christianalfoni/react-addressbar/issues/2","id":137390648,"user":{"login":"christianalfoni","id":3956929,"avatar_url":"https://avatars.githubusercontent.com/u/3956929?v=3","gravatar_id":"","url":"https://api.github.com/users/christianalfoni","html_url":"https://github.com/christianalfoni","followers_url":"https://api.github.com/users/christianalfoni/followers","following_url":"https://api.github.com/users/christianalfoni/following{/other_user}","gists_url":"https://api.github.com/users/christianalfoni/gists{/gist_id}","starred_url":"https://api.github.com/users/christianalfoni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/christianalfoni/subscriptions","organizations_url":"https://api.github.com/users/christianalfoni/orgs","repos_url":"https://api.github.com/users/christianalfoni/repos","events_url":"https://api.github.com/users/christianalfoni/events{/privacy}","received_events_url":"https://api.github.com/users/christianalfoni/received_events","type":"User","site_admin":false},"created_at":"2015-09-03T09:30:10Z","updated_at":"2015-09-03T09:30:10Z","body":"ah, no, it works... hehe... there is a bug in Chrome. Sometimes the url displays '/#/' but it is the previous url in location.href... but another refresh fixes that"}}