Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

_initData 方法覆盖 #221

Closed
Sdoy opened this issue Jun 28, 2018 · 2 comments
Closed

_initData 方法覆盖 #221

Sdoy opened this issue Jun 28, 2018 · 2 comments

Comments

@Sdoy
Copy link

Sdoy commented Jun 28, 2018

在component里面写_initData会貌似会导致page._initData,调用不正确

componentDidMount = async () => {
     this._initData()
  }
  
  _initData=()=>{
    console.log(11111)
  };

image

搜索文档并未找到对应的提示
image

是否应该完善下文档 或者 ESLint 提示下

@yuche yuche closed this as completed in 5fe2c46 Jun 28, 2018
@yuche
Copy link
Contributor

yuche commented Jun 28, 2018

写了一个 eslint 插件,迟点再补多一点测试用例再加一个 Taro 类的作用域起效果。

我喜欢你的名字,invoker。

@Sdoy
Copy link
Author

Sdoy commented Jun 28, 2018

ty

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants