{"action":"created","issue":{"url":"https://api.github.com/repos/trazyn/weweChat/issues/166","repository_url":"https://api.github.com/repos/trazyn/weweChat","labels_url":"https://api.github.com/repos/trazyn/weweChat/issues/166/labels{/name}","comments_url":"https://api.github.com/repos/trazyn/weweChat/issues/166/comments","events_url":"https://api.github.com/repos/trazyn/weweChat/issues/166/events","html_url":"https://github.com/trazyn/weweChat/issues/166","id":352501583,"node_id":"MDU6SXNzdWUzNTI1MDE1ODM=","number":166,"title":"i try to use mobx in my create-react-app  as your style . but  i got an error.","user":{"login":"Helongzhou","id":20851197,"node_id":"MDQ6VXNlcjIwODUxMTk3","avatar_url":"https://avatars2.githubusercontent.com/u/20851197?v=4","gravatar_id":"","url":"https://api.github.com/users/Helongzhou","html_url":"https://github.com/Helongzhou","followers_url":"https://api.github.com/users/Helongzhou/followers","following_url":"https://api.github.com/users/Helongzhou/following{/other_user}","gists_url":"https://api.github.com/users/Helongzhou/gists{/gist_id}","starred_url":"https://api.github.com/users/Helongzhou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Helongzhou/subscriptions","organizations_url":"https://api.github.com/users/Helongzhou/orgs","repos_url":"https://api.github.com/users/Helongzhou/repos","events_url":"https://api.github.com/users/Helongzhou/events{/privacy}","received_events_url":"https://api.github.com/users/Helongzhou/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-21T11:41:31Z","updated_at":"2018-08-24T06:44:47Z","closed_at":null,"author_association":"NONE","body":"Uncaught Error: [mobx] @action cannot be used with getters\r\n\r\nhere is my code \r\n/auth.js\r\n`import { observable, action } from 'mobx';\r\n\r\nimport {post} from '../service/request';\r\n\r\nclass Auth {\r\n    @observable login = {\r\n        userinfo: ''\r\n    };\r\n    /**\r\n     * login\r\n     * @param  {string} loginPwd password\r\n     * @param  {string} memberCellphone phone\r\n     */\r\n    @action  login(username, password) {\r\n        const { code, data, text } =  post('/sapp-api/notfilter/member/login')\r\n        console.log(code,text)\r\n        return data\r\n    }\r\n}\r\n\r\nconst self = new Auth();\r\nexport default self;`\r\n"},"comment":{"url":"https://api.github.com/repos/trazyn/weweChat/issues/comments/415667432","html_url":"https://github.com/trazyn/weweChat/issues/166#issuecomment-415667432","issue_url":"https://api.github.com/repos/trazyn/weweChat/issues/166","id":415667432,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNTY2NzQzMg==","user":{"login":"trazyn","id":1774898,"node_id":"MDQ6VXNlcjE3NzQ4OTg=","avatar_url":"https://avatars3.githubusercontent.com/u/1774898?v=4","gravatar_id":"","url":"https://api.github.com/users/trazyn","html_url":"https://github.com/trazyn","followers_url":"https://api.github.com/users/trazyn/followers","following_url":"https://api.github.com/users/trazyn/following{/other_user}","gists_url":"https://api.github.com/users/trazyn/gists{/gist_id}","starred_url":"https://api.github.com/users/trazyn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trazyn/subscriptions","organizations_url":"https://api.github.com/users/trazyn/orgs","repos_url":"https://api.github.com/users/trazyn/repos","events_url":"https://api.github.com/users/trazyn/events{/privacy}","received_events_url":"https://api.github.com/users/trazyn/received_events","type":"User","site_admin":false},"created_at":"2018-08-24T06:44:47Z","updated_at":"2018-08-24T06:44:47Z","author_association":"OWNER","body":"你的两个`login`是重名的"}}
{"actor":{"display_login":"trazyn"}}