{"action":"created","issue":{"url":"https://api.github.com/repos/hoodiehq/hoodie-client/issues/12","labels_url":"https://api.github.com/repos/hoodiehq/hoodie-client/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/hoodiehq/hoodie-client/issues/12/comments","events_url":"https://api.github.com/repos/hoodiehq/hoodie-client/issues/12/events","html_url":"https://github.com/hoodiehq/hoodie-client/issues/12","id":117930392,"number":12,"title":"Implement hoodie.reset()","user":{"login":"gr2m","id":39992,"avatar_url":"https://avatars.githubusercontent.com/u/39992?v=3","gravatar_id":"","url":"https://api.github.com/users/gr2m","html_url":"https://github.com/gr2m","followers_url":"https://api.github.com/users/gr2m/followers","following_url":"https://api.github.com/users/gr2m/following{/other_user}","gists_url":"https://api.github.com/users/gr2m/gists{/gist_id}","starred_url":"https://api.github.com/users/gr2m/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gr2m/subscriptions","organizations_url":"https://api.github.com/users/gr2m/orgs","repos_url":"https://api.github.com/users/gr2m/repos","events_url":"https://api.github.com/users/gr2m/events{/privacy}","received_events_url":"https://api.github.com/users/gr2m/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2015-11-19T23:12:48Z","updated_at":"2016-01-07T14:32:03Z","closed_at":"2016-01-07T14:28:11Z","body":"Reset hoodie client and emit `reset` events so plugins can reset as well. Should implement a way so that plugins can hook into the reset with async operations\r\n\r\n```js\r\nhoodie.reset().then(function () {\r\n  // clean slate again\r\n})\r\n```\r\n\r\nAnd plugins could do something like\r\n\r\n```js\r\nhoodie.on('reset', function (options) {\r\n  options.promise = options.promise.then(function () {\r\n    // do some async reset here\r\n  })\r\n})\r\n```\r\n\r\n^^ This is just a suggestion, maybe there are better patterns for it :)\r\n\r\n- [ ] Update README as part of PR"},"comment":{"url":"https://api.github.com/repos/hoodiehq/hoodie-client/issues/comments/169679942","html_url":"https://github.com/hoodiehq/hoodie-client/issues/12#issuecomment-169679942","issue_url":"https://api.github.com/repos/hoodiehq/hoodie-client/issues/12","id":169679942,"user":{"login":"danreeves","id":1973559,"avatar_url":"https://avatars.githubusercontent.com/u/1973559?v=3","gravatar_id":"","url":"https://api.github.com/users/danreeves","html_url":"https://github.com/danreeves","followers_url":"https://api.github.com/users/danreeves/followers","following_url":"https://api.github.com/users/danreeves/following{/other_user}","gists_url":"https://api.github.com/users/danreeves/gists{/gist_id}","starred_url":"https://api.github.com/users/danreeves/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danreeves/subscriptions","organizations_url":"https://api.github.com/users/danreeves/orgs","repos_url":"https://api.github.com/users/danreeves/repos","events_url":"https://api.github.com/users/danreeves/events{/privacy}","received_events_url":"https://api.github.com/users/danreeves/received_events","type":"User","site_admin":false},"created_at":"2016-01-07T14:32:03Z","updated_at":"2016-01-07T14:32:03Z","body":"Yeah, that makes sense"}}