{"action":"opened","issue":{"url":"https://api.github.com/repos/mboperator/redux-modules/issues/89","repository_url":"https://api.github.com/repos/mboperator/redux-modules","labels_url":"https://api.github.com/repos/mboperator/redux-modules/issues/89/labels{/name}","comments_url":"https://api.github.com/repos/mboperator/redux-modules/issues/89/comments","events_url":"https://api.github.com/repos/mboperator/redux-modules/issues/89/events","html_url":"https://github.com/mboperator/redux-modules/issues/89","id":185142347,"number":89,"title":"Create a decorator that uses `redux-modules` to manage local component state","user":{"login":"mboperator","id":1007233,"avatar_url":"https://avatars.githubusercontent.com/u/1007233?v=3","gravatar_id":"","url":"https://api.github.com/users/mboperator","html_url":"https://github.com/mboperator","followers_url":"https://api.github.com/users/mboperator/followers","following_url":"https://api.github.com/users/mboperator/following{/other_user}","gists_url":"https://api.github.com/users/mboperator/gists{/gist_id}","starred_url":"https://api.github.com/users/mboperator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mboperator/subscriptions","organizations_url":"https://api.github.com/users/mboperator/orgs","repos_url":"https://api.github.com/users/mboperator/repos","events_url":"https://api.github.com/users/mboperator/events{/privacy}","received_events_url":"https://api.github.com/users/mboperator/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mboperator/redux-modules/labels/feature","name":"feature","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-25T14:56:33Z","updated_at":"2016-10-25T14:56:33Z","closed_at":null,"body":"## Description\r\nCurrently `connectModule` connects itself to `redux` via registering its reducer with `ModuleProvider`. It would be cool to have a decorator that instead uses the `module` to manage `React component state`. That way `redux-modules` can be agnostic to the medium that is holding the UI state.\r\n\r\n## Example API\r\n```js\r\n@localModule(todoModule)\r\nexport default class TodoList extends React.Component {\r\n  static propTypes = {\r\n    collection: array,\r\n    actions: shape({\r\n      create: func,\r\n      destroy: func,\r\n    })\r\n  }\r\n}\r\n```"}}
{"actor":{"display_login":"mboperator"}}