依赖刷新开启自动收集依赖后,再 onBefore 中引入其他的响应式值,然后再其他地方修改修改引用的值会导致刷新接口 #241
songpeng154
started this conversation in
General
Replies: 3 comments 5 replies
-
应该是 watchEffect 自动收集到 onBefore 中的依赖了,再源码层面上有什么好的解决方案吗? |
Beta Was this translation helpful? Give feedback.
0 replies
-
@songpeng154 可以提供一个最小重现嘛 |
Beta Was this translation helpful? Give feedback.
0 replies
-
@songpeng154 我在今天会发布一个更新版本 2.3.0 ,将自动依赖收集从 watch effect 改为 watch,应该可以解决这个问题 |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
依赖刷新开启自动收集依赖后,再 onBefore 中引入其他的响应式值,然后再其他地方修改修改引用的值会导致刷新接口
Beta Was this translation helpful? Give feedback.
All reactions