{"action":"opened","issue":{"url":"https://api.github.com/repos/samiskin/redux-electron-store/issues/17","repository_url":"https://api.github.com/repos/samiskin/redux-electron-store","labels_url":"https://api.github.com/repos/samiskin/redux-electron-store/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/samiskin/redux-electron-store/issues/17/comments","events_url":"https://api.github.com/repos/samiskin/redux-electron-store/issues/17/events","html_url":"https://github.com/samiskin/redux-electron-store/issues/17","id":147935888,"number":17,"title":"Cannot read property 'clientId' of undefined","user":{"login":"CharlieHess","id":1865957,"avatar_url":"https://avatars.githubusercontent.com/u/1865957?v=3","gravatar_id":"","url":"https://api.github.com/users/CharlieHess","html_url":"https://github.com/CharlieHess","followers_url":"https://api.github.com/users/CharlieHess/followers","following_url":"https://api.github.com/users/CharlieHess/following{/other_user}","gists_url":"https://api.github.com/users/CharlieHess/gists{/gist_id}","starred_url":"https://api.github.com/users/CharlieHess/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CharlieHess/subscriptions","organizations_url":"https://api.github.com/users/CharlieHess/orgs","repos_url":"https://api.github.com/users/CharlieHess/repos","events_url":"https://api.github.com/users/CharlieHess/events{/privacy}","received_events_url":"https://api.github.com/users/CharlieHess/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-13T03:21:41Z","updated_at":"2016-04-13T03:21:41Z","closed_at":null,"body":"Saw this crash after an upgrade to 0.3.6, I suspect [the source names PR](https://github.com/samiskin/redux-electron-store/commit/d2e9ab2c6fdede530edea5d3d7ab576a26548d64). Here's a log from Slack, with the context around it. We closed a window and the crash occurred in the first dispatch after that; perhaps the enhancer is holding a reference?\r\n\r\n```\r\n2016-04-13T01:12:08.101Z - info: Display changed! Recreating notifications window\r\n2016-04-13T01:12:08.269Z - info: Notifications window closed, disposing\r\n2016-04-13T01:12:08.335Z - info: REMOVE_WINDOW : 2\r\n2016-04-13T01:12:08.918Z - info: Creating notifications window\r\n2016-04-13T01:12:09.079Z - info: ADD_WINDOW : {\r\n  \"windowId\": 9,\r\n  \"windowType\": \"NOTIFICATIONS\"\r\n}\r\n2016-04-13T01:12:21.824Z - info: FOCUS_PRIMARY_TEAM \r\n2016-04-13T01:12:33.632Z - error: **** ABOUT TO CRASH ****\r\n2016-04-13T01:12:33.637Z - error: Cannot read property 'clientId' of undefined\r\n2016-04-13T01:12:33.652Z - error: TypeError: Cannot read property 'clientId' of undefined\r\n  at EventEmitter.<anonymous> (C:\\Users\\mariab\\AppData\\Local\\slack\\app-2.0.4-beta1\\resources\\app.asar\\node_modules\\redux-electron-store\\lib\\electronBrowserEnhancer.js:104:49)\r\n  at emitTwo (events.js:100:13)\r\n  at EventEmitter.emit (events.js:185:7)\r\n  at EventEmitter.<anonymous> (C:\\Users\\mariab\\AppData\\Local\\slack\\app-2.0.4-beta1\\resources\\electron.asar\\browser\\api\\web-contents.js:128:25)\r\n  at emitTwo (events.js:100:13)\r\n  at EventEmitter.emit (events.js:185:7)\r\n```"}}