{"action":"created","issue":{"url":"https://api.github.com/repos/christianalfoni/cerebral/issues/44","labels_url":"https://api.github.com/repos/christianalfoni/cerebral/issues/44/labels{/name}","comments_url":"https://api.github.com/repos/christianalfoni/cerebral/issues/44/comments","events_url":"https://api.github.com/repos/christianalfoni/cerebral/issues/44/events","html_url":"https://github.com/christianalfoni/cerebral/issues/44","id":98910795,"number":44,"title":"New Feature: \"Top Level Array\"","user":{"login":"christianalfoni","id":3956929,"avatar_url":"https://avatars.githubusercontent.com/u/3956929?v=3","gravatar_id":"","url":"https://api.github.com/users/christianalfoni","html_url":"https://github.com/christianalfoni","followers_url":"https://api.github.com/users/christianalfoni/followers","following_url":"https://api.github.com/users/christianalfoni/following{/other_user}","gists_url":"https://api.github.com/users/christianalfoni/gists{/gist_id}","starred_url":"https://api.github.com/users/christianalfoni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/christianalfoni/subscriptions","organizations_url":"https://api.github.com/users/christianalfoni/orgs","repos_url":"https://api.github.com/users/christianalfoni/repos","events_url":"https://api.github.com/users/christianalfoni/events{/privacy}","received_events_url":"https://api.github.com/users/christianalfoni/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/christianalfoni/cerebral/labels/help%20wanted","name":"help wanted","color":"eb6420"},{"url":"https://api.github.com/repos/christianalfoni/cerebral/labels/needs%20thought","name":"needs thought","color":"fad8c7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-08-04T07:58:30Z","updated_at":"2015-08-04T10:27:21Z","closed_at":null,"body":"To allow easy composition of signals, we will make the top level an array.\r\n\r\n```js\r\nconst $actionGroup = [\r\n  action1,\r\n  action2,\r\n  [action3]\r\n];\r\n\r\ncontroller.signal('somethingHappened', [specialAction].concat($actionGroup));\r\ncontroller.signal('somethingElseHappened', $actionGroup);\r\n```\r\n\r\nThis requires breaking API change though, as the top level will need to be an array to support:\r\n\r\n```js\r\ncontroller.signal('somethingHappened', [ \r\n  [asyncAction] \r\n]);\r\n\r\ncontroller.signal('somethingHappened', [\r\n  syncAction\r\n].concat(otherActions));\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/christianalfoni/cerebral/issues/comments/127558688","html_url":"https://github.com/christianalfoni/cerebral/issues/44#issuecomment-127558688","issue_url":"https://api.github.com/repos/christianalfoni/cerebral/issues/44","id":127558688,"user":{"login":"idream3","id":1082632,"avatar_url":"https://avatars.githubusercontent.com/u/1082632?v=3","gravatar_id":"","url":"https://api.github.com/users/idream3","html_url":"https://github.com/idream3","followers_url":"https://api.github.com/users/idream3/followers","following_url":"https://api.github.com/users/idream3/following{/other_user}","gists_url":"https://api.github.com/users/idream3/gists{/gist_id}","starred_url":"https://api.github.com/users/idream3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/idream3/subscriptions","organizations_url":"https://api.github.com/users/idream3/orgs","repos_url":"https://api.github.com/users/idream3/repos","events_url":"https://api.github.com/users/idream3/events{/privacy}","received_events_url":"https://api.github.com/users/idream3/received_events","type":"User","site_admin":false},"created_at":"2015-08-04T10:27:21Z","updated_at":"2015-08-04T10:27:21Z","body":"Ahh yes, the new line provides the visual separation :)"}}