{"action":"created","issue":{"url":"https://api.github.com/repos/gaearon/redux/issues/45","labels_url":"https://api.github.com/repos/gaearon/redux/issues/45/labels{/name}","comments_url":"https://api.github.com/repos/gaearon/redux/issues/45/comments","events_url":"https://api.github.com/repos/gaearon/redux/issues/45/events","html_url":"https://github.com/gaearon/redux/issues/45","id":85659824,"number":45,"title":"remove actions from props","user":{"login":"threepointone","id":18808,"avatar_url":"https://avatars.githubusercontent.com/u/18808?v=3","gravatar_id":"","url":"https://api.github.com/users/threepointone","html_url":"https://github.com/threepointone","followers_url":"https://api.github.com/users/threepointone/followers","following_url":"https://api.github.com/users/threepointone/following{/other_user}","gists_url":"https://api.github.com/users/threepointone/gists{/gist_id}","starred_url":"https://api.github.com/users/threepointone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/threepointone/subscriptions","organizations_url":"https://api.github.com/users/threepointone/orgs","repos_url":"https://api.github.com/users/threepointone/repos","events_url":"https://api.github.com/users/threepointone/events{/privacy}","received_events_url":"https://api.github.com/users/threepointone/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-06-06T00:00:00Z","updated_at":"2015-06-06T15:07:08Z","closed_at":"2015-06-06T15:06:00Z","body":"Was wondering how you handle clashing action and store names in containers. But it also strikes me that since actions are just functions *without* a current state, they don't have to be passed down from the top. Instead, as long as the dispatch function is available as a prop, you'll still be able to do full dispatches. to explain, instead of - \r\n```js \r\n@inject({\r\n  actions: CounterActions,\r\n  stores: { counter: counterStore }\r\n})\r\nexport default class Counter {\r\n  render() {\r\n    const { increment, decrement, counter } = this.props;\r\n    return (\r\n      <p>\r\n        <button onClick={increment}>+</button>\r\n      </p>\r\n    );\r\n  }\r\n```\r\nyou could do \r\n\r\n```js \r\n@inject({\r\n  stores: { counter: counterStore }\r\n})\r\nexport default class Counter {\r\n  static propTypes = {\r\n    dispatch: PropTypes.func.isRequired\r\n  };\r\n\r\n  render() {\r\n    const { counter, dispatch } = this.props;\r\n    return (\r\n      <p>\r\n        Clicked: {counter} times\r\n        {' '}\r\n        <button onClick={() => dispatch(increment())}>+</button>\r\n        {' '}\r\n        <button onClick={() => dispatch(decrement())}>-</button>\r\n      </p>\r\n    );\r\n  }\r\n```\r\nalternately\r\n\r\n```js \r\n        <button onClick={() => dispatch(increment)}>+</button>\r\n```\r\n\r\nbut I'm not clear on the benefits (scheduling?) \r\n\r\nThis would clear up the name clash problem, and make it more 'primitive', if that make sense. "},"comment":{"url":"https://api.github.com/repos/gaearon/redux/issues/comments/109595260","html_url":"https://github.com/gaearon/redux/issues/45#issuecomment-109595260","issue_url":"https://api.github.com/repos/gaearon/redux/issues/45","id":109595260,"user":{"login":"gaearon","id":810438,"avatar_url":"https://avatars.githubusercontent.com/u/810438?v=3","gravatar_id":"","url":"https://api.github.com/users/gaearon","html_url":"https://github.com/gaearon","followers_url":"https://api.github.com/users/gaearon/followers","following_url":"https://api.github.com/users/gaearon/following{/other_user}","gists_url":"https://api.github.com/users/gaearon/gists{/gist_id}","starred_url":"https://api.github.com/users/gaearon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gaearon/subscriptions","organizations_url":"https://api.github.com/users/gaearon/orgs","repos_url":"https://api.github.com/users/gaearon/repos","events_url":"https://api.github.com/users/gaearon/events{/privacy}","received_events_url":"https://api.github.com/users/gaearon/received_events","type":"User","site_admin":false},"created_at":"2015-06-06T15:07:08Z","updated_at":"2015-06-06T15:07:08Z","body":"https://github.com/gaearon/redux/pull/46#issuecomment-109595200"}}