-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
【新语法讨论】hook 语法的意见收集 #1849
Labels
Comments
可以哇,很奶思的哇 |
Gcaufy
added a commit
that referenced
this issue
Oct 18, 2018
Gcaufy
referenced
this issue
in wepyjs/wepy-templates
Oct 18, 2018
对于app级别的before-setData没有必要,这个情况比较少见,如果需要多页面共有处理方式,可以通过mixin的方式混入 |
比较赞成使用 |
Gcaufy
added a commit
that referenced
this issue
Oct 19, 2018
@fsy0718 |
版本棒 比之前好多了 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
在 2.0 中,会新加一个 hook 机制,用于预埋的一些钩子函数。但这些函数还要与生命周期钩子函数区分开来。
比如说 在 2.0 中, setData 不再对用户透明,用户可以借助这些 hook 函数对 setData 数据进行进一步处理。初步语法为:
欢迎大家一起参考讨论,给出更好的意见。最终实现方案将使用本 issue 讨论结果。
The text was updated successfully, but these errors were encountered: