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

taro微信小程序可以重写component生命周期什么的吗 需要做一个全局埋点 #8154

Closed
betterMIsWu opened this issue Nov 30, 2020 · 4 comments
Labels
enhancement New feature or request

Comments

@betterMIsWu
Copy link

这个特性解决了什么问题?

微信小程序全局埋点

这个 API 长什么样?

rewriteComponent

@taro-bot2 taro-bot2 bot added the enhancement New feature or request label Nov 30, 2020
@Chen-jj
Copy link
Contributor

Chen-jj commented Nov 30, 2020

使用基类来实现吧。

@betterMIsWu
Copy link
Author

使用基类来实现吧。

能具体点吗?

@Chen-jj
Copy link
Contributor

Chen-jj commented Dec 3, 2020

继承、装饰器、自定义 hooks 都能实现,自己把握咯。

@chioio
Copy link

chioio commented Aug 31, 2024

因重写原生 Component 无效,采取重写 TaroNode addEventListener
方式:#12287 (comment)

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

No branches or pull requests

3 participants