Replies: 1 comment
-
依赖变化autorun会重复执行,首次执行是为了收集依赖。callback内逻辑,你可以自己做异步处理 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
目前场景如下,就是需要监听数据状态,然后数据状态 ready 时候,取消掉 autorun
但是我看 autorun 的源码,tracer callback 是同步执行的,内部无法拿到 dispose
https://github.com/alibaba/formily/blob/formily_next/packages/reactive/src/autorun.ts#L52
Beta Was this translation helpful? Give feedback.
All reactions