{"action":"closed","issue":{"url":"https://api.github.com/repos/squelch-irc/squelch/issues/27","repository_url":"https://api.github.com/repos/squelch-irc/squelch","labels_url":"https://api.github.com/repos/squelch-irc/squelch/issues/27/labels{/name}","comments_url":"https://api.github.com/repos/squelch-irc/squelch/issues/27/comments","events_url":"https://api.github.com/repos/squelch-irc/squelch/issues/27/events","html_url":"https://github.com/squelch-irc/squelch/issues/27","id":125766900,"number":27,"title":"Fix refreshing when not at welcome view","user":{"login":"rahatarmanahmed","id":3174006,"avatar_url":"https://avatars.githubusercontent.com/u/3174006?v=3","gravatar_id":"","url":"https://api.github.com/users/rahatarmanahmed","html_url":"https://github.com/rahatarmanahmed","followers_url":"https://api.github.com/users/rahatarmanahmed/followers","following_url":"https://api.github.com/users/rahatarmanahmed/following{/other_user}","gists_url":"https://api.github.com/users/rahatarmanahmed/gists{/gist_id}","starred_url":"https://api.github.com/users/rahatarmanahmed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rahatarmanahmed/subscriptions","organizations_url":"https://api.github.com/users/rahatarmanahmed/orgs","repos_url":"https://api.github.com/users/rahatarmanahmed/repos","events_url":"https://api.github.com/users/rahatarmanahmed/events{/privacy}","received_events_url":"https://api.github.com/users/rahatarmanahmed/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/squelch-irc/squelch/milestones/1","html_url":"https://github.com/squelch-irc/squelch/milestones/Phase%201","labels_url":"https://api.github.com/repos/squelch-irc/squelch/milestones/1/labels","id":1254039,"number":1,"title":"Phase 1","description":"Client management (multiple clients)\r\nReact View for all the data/events from squelch-client\r\nShow sidebar list of servers/channels/queries\r\nShow view of selected item in sidebar\r\nShow IRC output log\r\nShow channel user list\r\nInput box for sending raw commands\r\nCurrent topic view\r\n","creator":{"login":"rahatarmanahmed","id":3174006,"avatar_url":"https://avatars.githubusercontent.com/u/3174006?v=3","gravatar_id":"","url":"https://api.github.com/users/rahatarmanahmed","html_url":"https://github.com/rahatarmanahmed","followers_url":"https://api.github.com/users/rahatarmanahmed/followers","following_url":"https://api.github.com/users/rahatarmanahmed/following{/other_user}","gists_url":"https://api.github.com/users/rahatarmanahmed/gists{/gist_id}","starred_url":"https://api.github.com/users/rahatarmanahmed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rahatarmanahmed/subscriptions","organizations_url":"https://api.github.com/users/rahatarmanahmed/orgs","repos_url":"https://api.github.com/users/rahatarmanahmed/repos","events_url":"https://api.github.com/users/rahatarmanahmed/events{/privacy}","received_events_url":"https://api.github.com/users/rahatarmanahmed/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":24,"state":"open","created_at":"2015-08-13T18:29:03Z","updated_at":"2016-03-08T19:45:36Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2016-01-09T16:05:14Z","updated_at":"2016-03-08T19:45:36Z","closed_at":"2016-03-08T19:45:36Z","body":"Since react-router modifies the url, refreshing the app will try to load whatever route you were on previously. But in the case of a channel view, it'll break because that channel doesn't exist yet on reload.\r\n\r\nTo fix this, make all the channel, server, query views handle the case that what they're showing might not exist yet, like showing \"Not yet connected to server X\".\r\n\r\nThis should have the added bonus of successfully showing that view on reload once we do reconnect to that channel (ex: if you autojoin the channel or you have ZNC)."}}