{"action":"closed","number":173,"pull_request":{"url":"https://api.github.com/repos/goatslacker/alt/pulls/173","id":33559547,"html_url":"https://github.com/goatslacker/alt/pull/173","diff_url":"https://github.com/goatslacker/alt/pull/173.diff","patch_url":"https://github.com/goatslacker/alt/pull/173.patch","issue_url":"https://api.github.com/repos/goatslacker/alt/issues/173","number":173,"state":"closed","locked":false,"title":"Allow customizing your state property key","user":{"login":"goatslacker","id":10632,"avatar_url":"https://avatars.githubusercontent.com/u/10632?v=3","gravatar_id":"","url":"https://api.github.com/users/goatslacker","html_url":"https://github.com/goatslacker","followers_url":"https://api.github.com/users/goatslacker/followers","following_url":"https://api.github.com/users/goatslacker/following{/other_user}","gists_url":"https://api.github.com/users/goatslacker/gists{/gist_id}","starred_url":"https://api.github.com/users/goatslacker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/goatslacker/subscriptions","organizations_url":"https://api.github.com/users/goatslacker/orgs","repos_url":"https://api.github.com/users/goatslacker/repos","events_url":"https://api.github.com/users/goatslacker/events{/privacy}","received_events_url":"https://api.github.com/users/goatslacker/received_events","type":"User","site_admin":false},"body":"Lets have our :cake: and eat it too.\r\n\r\nThis PR adds a way out of #158 where we can get the best of both worlds. Through alt's config object you can specify a state key where your state will live:\r\n\r\n```js\r\nconst alt = new Alt({ stateKey: 'bears' })\r\n\r\nclass Foo {\r\n  static displayName: 'FooStore'\r\n\r\n  constructor() {\r\n    this.lookThisIsPrivate = 'yes it is'\r\n\r\n    this.bears = {\r\n      state1: 1,\r\n      state2: 2\r\n    }\r\n  }\r\n}\r\n```","created_at":"2015-04-17T16:18:58Z","updated_at":"2015-04-17T22:32:52Z","closed_at":"2015-04-17T22:32:52Z","merged_at":"2015-04-17T22:32:52Z","merge_commit_sha":"e8aeb0d313ccf44e8bc977d0461bdd38cf98ada5","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/goatslacker/alt/pulls/173/commits","review_comments_url":"https://api.github.com/repos/goatslacker/alt/pulls/173/comments","review_comment_url":"https://api.github.com/repos/goatslacker/alt/pulls/comments{/number}","comments_url":"https://api.github.com/repos/goatslacker/alt/issues/173/comments","statuses_url":"https://api.github.com/repos/goatslacker/alt/statuses/ff9e4dd035b13f93fcb4a4afa372edefaa33d71b","head":{"label":"goatslacker:custom-state-key","ref":"custom-state-key","sha":"ff9e4dd035b13f93fcb4a4afa372edefaa33d71b","user":{"login":"goatslacker","id":10632,"avatar_url":"https://avatars.githubusercontent.com/u/10632?v=3","gravatar_id":"","url":"https://api.github.com/users/goatslacker","html_url":"https://github.com/goatslacker","followers_url":"https://api.github.com/users/goatslacker/followers","following_url":"https://api.github.com/users/goatslacker/following{/other_user}","gists_url":"https://api.github.com/users/goatslacker/gists{/gist_id}","starred_url":"https://api.github.com/users/goatslacker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/goatslacker/subscriptions","organizations_url":"https://api.github.com/users/goatslacker/orgs","repos_url":"https://api.github.com/users/goatslacker/repos","events_url":"https://api.github.com/users/goatslacker/events{/privacy}","received_events_url":"https://api.github.com/users/goatslacker/received_events","type":"User","site_admin":false},"repo":{"id":28223616,"name":"alt","full_name":"goatslacker/alt","owner":{"login":"goatslacker","id":10632,"avatar_url":"https://avatars.githubusercontent.com/u/10632?v=3","gravatar_id":"","url":"https://api.github.com/users/goatslacker","html_url":"https://github.com/goatslacker","followers_url":"https://api.github.com/users/goatslacker/followers","following_url":"https://api.github.com/users/goatslacker/following{/other_user}","gists_url":"https://api.github.com/users/goatslacker/gists{/gist_id}","starred_url":"https://api.github.com/users/goatslacker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/goatslacker/subscriptions","organizations_url":"https://api.github.com/users/goatslacker/orgs","repos_url":"https://api.github.com/users/goatslacker/repos","events_url":"https://api.github.com/users/goatslacker/events{/privacy}","received_events_url":"https://api.github.com/users/goatslacker/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/goatslacker/alt","description":"Isomorphic flux implementation","fork":false,"url":"https://api.github.com/repos/goatslacker/alt","forks_url":"https://api.github.com/repos/goatslacker/alt/forks","keys_url":"https://api.github.com/repos/goatslacker/alt/keys{/key_id}","collaborators_url":"https://api.github.com/repos/goatslacker/alt/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/goatslacker/alt/teams","hooks_url":"https://api.github.com/repos/goatslacker/alt/hooks","issue_events_url":"https://api.github.com/repos/goatslacker/alt/issues/events{/number}","events_url":"https://api.github.com/repos/goatslacker/alt/events","assignees_url":"https://api.github.com/repos/goatslacker/alt/assignees{/user}","branches_url":"https://api.github.com/repos/goatslacker/alt/branches{/branch}","tags_url":"https://api.github.com/repos/goatslacker/alt/tags","blobs_url":"https://api.github.com/repos/goatslacker/alt/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/goatslacker/alt/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/goatslacker/alt/git/refs{/sha}","trees_url":"https://api.github.com/repos/goatslacker/alt/git/trees{/sha}","statuses_url":"https://api.github.com/repos/goatslacker/alt/statuses/{sha}","languages_url":"https://api.github.com/repos/goatslacker/alt/languages","stargazers_url":"https://api.github.com/repos/goatslacker/alt/stargazers","contributors_url":"https://api.github.com/repos/goatslacker/alt/contributors","subscribers_url":"https://api.github.com/repos/goatslacker/alt/subscribers","subscription_url":"https://api.github.com/repos/goatslacker/alt/subscription","commits_url":"https://api.github.com/repos/goatslacker/alt/commits{/sha}","git_commits_url":"https://api.github.com/repos/goatslacker/alt/git/commits{/sha}","comments_url":"https://api.github.com/repos/goatslacker/alt/comments{/number}","issue_comment_url":"https://api.github.com/repos/goatslacker/alt/issues/comments{/number}","contents_url":"https://api.github.com/repos/goatslacker/alt/contents/{+path}","compare_url":"https://api.github.com/repos/goatslacker/alt/compare/{base}...{head}","merges_url":"https://api.github.com/repos/goatslacker/alt/merges","archive_url":"https://api.github.com/repos/goatslacker/alt/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/goatslacker/alt/downloads","issues_url":"https://api.github.com/repos/goatslacker/alt/issues{/number}","pulls_url":"https://api.github.com/repos/goatslacker/alt/pulls{/number}","milestones_url":"https://api.github.com/repos/goatslacker/alt/milestones{/number}","notifications_url":"https://api.github.com/repos/goatslacker/alt/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/goatslacker/alt/labels{/name}","releases_url":"https://api.github.com/repos/goatslacker/alt/releases{/id}","created_at":"2014-12-19T09:44:04Z","updated_at":"2015-04-17T18:57:40Z","pushed_at":"2015-04-17T22:32:52Z","git_url":"git://github.com/goatslacker/alt.git","ssh_url":"git@github.com:goatslacker/alt.git","clone_url":"https://github.com/goatslacker/alt.git","svn_url":"https://github.com/goatslacker/alt","homepage":"http://alt.js.org/","size":3980,"stargazers_count":671,"watchers_count":671,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":54,"mirror_url":null,"open_issues_count":24,"forks":54,"open_issues":24,"watchers":671,"default_branch":"master"}},"base":{"label":"goatslacker:master","ref":"master","sha":"c7cf466cc1dd5acd9e0c34bb73b0ec6b78601638","user":{"login":"goatslacker","id":10632,"avatar_url":"https://avatars.githubusercontent.com/u/10632?v=3","gravatar_id":"","url":"https://api.github.com/users/goatslacker","html_url":"https://github.com/goatslacker","followers_url":"https://api.github.com/users/goatslacker/followers","following_url":"https://api.github.com/users/goatslacker/following{/other_user}","gists_url":"https://api.github.com/users/goatslacker/gists{/gist_id}","starred_url":"https://api.github.com/users/goatslacker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/goatslacker/subscriptions","organizations_url":"https://api.github.com/users/goatslacker/orgs","repos_url":"https://api.github.com/users/goatslacker/repos","events_url":"https://api.github.com/users/goatslacker/events{/privacy}","received_events_url":"https://api.github.com/users/goatslacker/received_events","type":"User","site_admin":false},"repo":{"id":28223616,"name":"alt","full_name":"goatslacker/alt","owner":{"login":"goatslacker","id":10632,"avatar_url":"https://avatars.githubusercontent.com/u/10632?v=3","gravatar_id":"","url":"https://api.github.com/users/goatslacker","html_url":"https://github.com/goatslacker","followers_url":"https://api.github.com/users/goatslacker/followers","following_url":"https://api.github.com/users/goatslacker/following{/other_user}","gists_url":"https://api.github.com/users/goatslacker/gists{/gist_id}","starred_url":"https://api.github.com/users/goatslacker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/goatslacker/subscriptions","organizations_url":"https://api.github.com/users/goatslacker/orgs","repos_url":"https://api.github.com/users/goatslacker/repos","events_url":"https://api.github.com/users/goatslacker/events{/privacy}","received_events_url":"https://api.github.com/users/goatslacker/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/goatslacker/alt","description":"Isomorphic flux implementation","fork":false,"url":"https://api.github.com/repos/goatslacker/alt","forks_url":"https://api.github.com/repos/goatslacker/alt/forks","keys_url":"https://api.github.com/repos/goatslacker/alt/keys{/key_id}","collaborators_url":"https://api.github.com/repos/goatslacker/alt/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/goatslacker/alt/teams","hooks_url":"https://api.github.com/repos/goatslacker/alt/hooks","issue_events_url":"https://api.github.com/repos/goatslacker/alt/issues/events{/number}","events_url":"https://api.github.com/repos/goatslacker/alt/events","assignees_url":"https://api.github.com/repos/goatslacker/alt/assignees{/user}","branches_url":"https://api.github.com/repos/goatslacker/alt/branches{/branch}","tags_url":"https://api.github.com/repos/goatslacker/alt/tags","blobs_url":"https://api.github.com/repos/goatslacker/alt/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/goatslacker/alt/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/goatslacker/alt/git/refs{/sha}","trees_url":"https://api.github.com/repos/goatslacker/alt/git/trees{/sha}","statuses_url":"https://api.github.com/repos/goatslacker/alt/statuses/{sha}","languages_url":"https://api.github.com/repos/goatslacker/alt/languages","stargazers_url":"https://api.github.com/repos/goatslacker/alt/stargazers","contributors_url":"https://api.github.com/repos/goatslacker/alt/contributors","subscribers_url":"https://api.github.com/repos/goatslacker/alt/subscribers","subscription_url":"https://api.github.com/repos/goatslacker/alt/subscription","commits_url":"https://api.github.com/repos/goatslacker/alt/commits{/sha}","git_commits_url":"https://api.github.com/repos/goatslacker/alt/git/commits{/sha}","comments_url":"https://api.github.com/repos/goatslacker/alt/comments{/number}","issue_comment_url":"https://api.github.com/repos/goatslacker/alt/issues/comments{/number}","contents_url":"https://api.github.com/repos/goatslacker/alt/contents/{+path}","compare_url":"https://api.github.com/repos/goatslacker/alt/compare/{base}...{head}","merges_url":"https://api.github.com/repos/goatslacker/alt/merges","archive_url":"https://api.github.com/repos/goatslacker/alt/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/goatslacker/alt/downloads","issues_url":"https://api.github.com/repos/goatslacker/alt/issues{/number}","pulls_url":"https://api.github.com/repos/goatslacker/alt/pulls{/number}","milestones_url":"https://api.github.com/repos/goatslacker/alt/milestones{/number}","notifications_url":"https://api.github.com/repos/goatslacker/alt/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/goatslacker/alt/labels{/name}","releases_url":"https://api.github.com/repos/goatslacker/alt/releases{/id}","created_at":"2014-12-19T09:44:04Z","updated_at":"2015-04-17T18:57:40Z","pushed_at":"2015-04-17T22:32:52Z","git_url":"git://github.com/goatslacker/alt.git","ssh_url":"git@github.com:goatslacker/alt.git","clone_url":"https://github.com/goatslacker/alt.git","svn_url":"https://github.com/goatslacker/alt","homepage":"http://alt.js.org/","size":3980,"stargazers_count":671,"watchers_count":671,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":54,"mirror_url":null,"open_issues_count":24,"forks":54,"open_issues":24,"watchers":671,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/goatslacker/alt/pulls/173"},"html":{"href":"https://github.com/goatslacker/alt/pull/173"},"issue":{"href":"https://api.github.com/repos/goatslacker/alt/issues/173"},"comments":{"href":"https://api.github.com/repos/goatslacker/alt/issues/173/comments"},"review_comments":{"href":"https://api.github.com/repos/goatslacker/alt/pulls/173/comments"},"review_comment":{"href":"https://api.github.com/repos/goatslacker/alt/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/goatslacker/alt/pulls/173/commits"},"statuses":{"href":"https://api.github.com/repos/goatslacker/alt/statuses/ff9e4dd035b13f93fcb4a4afa372edefaa33d71b"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"goatslacker","id":10632,"avatar_url":"https://avatars.githubusercontent.com/u/10632?v=3","gravatar_id":"","url":"https://api.github.com/users/goatslacker","html_url":"https://github.com/goatslacker","followers_url":"https://api.github.com/users/goatslacker/followers","following_url":"https://api.github.com/users/goatslacker/following{/other_user}","gists_url":"https://api.github.com/users/goatslacker/gists{/gist_id}","starred_url":"https://api.github.com/users/goatslacker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/goatslacker/subscriptions","organizations_url":"https://api.github.com/users/goatslacker/orgs","repos_url":"https://api.github.com/users/goatslacker/repos","events_url":"https://api.github.com/users/goatslacker/events{/privacy}","received_events_url":"https://api.github.com/users/goatslacker/received_events","type":"User","site_admin":false},"comments":1,"review_comments":3,"commits":1,"additions":43,"deletions":5,"changed_files":6}}