{"action":"opened","issue":{"url":"https://api.github.com/repos/martyjs/marty/issues/356","labels_url":"https://api.github.com/repos/martyjs/marty/issues/356/labels{/name}","comments_url":"https://api.github.com/repos/martyjs/marty/issues/356/comments","events_url":"https://api.github.com/repos/martyjs/marty/issues/356/events","html_url":"https://github.com/martyjs/marty/issues/356","id":92568608,"number":356,"title":"Store#clear does not set initial state from ES6 class constructor ","user":{"login":"oyvinmar","id":364853,"avatar_url":"https://avatars.githubusercontent.com/u/364853?v=3","gravatar_id":"","url":"https://api.github.com/users/oyvinmar","html_url":"https://github.com/oyvinmar","followers_url":"https://api.github.com/users/oyvinmar/followers","following_url":"https://api.github.com/users/oyvinmar/following{/other_user}","gists_url":"https://api.github.com/users/oyvinmar/gists{/gist_id}","starred_url":"https://api.github.com/users/oyvinmar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oyvinmar/subscriptions","organizations_url":"https://api.github.com/users/oyvinmar/orgs","repos_url":"https://api.github.com/users/oyvinmar/repos","events_url":"https://api.github.com/users/oyvinmar/events{/privacy}","received_events_url":"https://api.github.com/users/oyvinmar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-02T07:20:26Z","updated_at":"2015-07-02T07:20:26Z","closed_at":null,"body":"When I set the initial state via ES6 class constructor:\r\n\r\n```javascript\r\nclass MyStore extends Marty.Store {\r\n  constructor(...args) {\r\n    super(...args);\r\n    this.state = new Immutable.List();\r\n  }\r\n}\r\n```\r\n\r\nAnd then call Store#clear() the state is set to the default `getInitalState()` and not `new Immutable.List`. I'm currently using `getInitialState` in my ES6 classes as workaround.\r\n\r\n\r\n"}}