trazyn / weweChat

💬 Unofficial WeChat client built with React, MobX and Electron.
MIT License
5.75k stars 733 forks source link

i try to use mobx in my create-react-app as your style . but i got an error. #166

Open Helongzhou opened 5 years ago

Helongzhou commented 5 years ago

Uncaught Error: [mobx] @action cannot be used with getters

here is my code /auth.js `import { observable, action } from 'mobx';

import {post} from '../service/request';

class Auth { @observable login = { userinfo: '' }; /**

const self = new Auth(); export default self;`

trazyn commented 5 years ago

你的两个login是重名的