2.0 可以自定义生命周期吗
#1800
-
2.0这边只有这个createEffectHook,能做到1.x那种$('onFocus', 'path')这样的吗,不然只能在一个方法里面写if去判断哪个触发了这个生命周期 |
Beta Was this translation helpful? Give feedback.
Answered by
janryWang
Jul 14, 2021
Replies: 1 comment 5 replies
-
都用2.x了,就尽量少用自定义生命周期,直接reactive包装一下数据,到处都能响应 |
Beta Was this translation helpful? Give feedback.
5 replies
Answer selected by
janryWang
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
都用2.x了,就尽量少用自定义生命周期,直接reactive包装一下数据,到处都能响应