We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
3.2.47
https://sfc.vuejs.org/#__DEV__eNp9UVtqwzAQvMpWP3HAtugDCqkTUgo9haA49tpxoxeSnHwY372SnHdL/ePdnZ0ZdjSQd63zfY9kQQpbmU47sOh6vWKyE1oZBwMYbFI4lK7awgiNUQJmnjFjkslKSeug4WULy7CXNCW3OH8LWGQkAUshkXj4jNVXCkp+cCxlr+ewXMHAJAClEKQUx5yrNplFLtYPsxSOzKAJ0DVnqfnEhItcklwEw3ejWIWdPxQBxqkYmYxVQaccfAK+cSg0Lx36DqDYPq6GYTp3HAvq2zje9M4pCeuKd9Vuycgxj4fwZyTuADjVthzjPp0IHijo2YCkZEo8E6XOv62S/k3iLewIWEYWp+sY8U8Qeka2zmm7oLSXetfmlRJ07TFqeuk6gVmtxPo5f8pfXmndWXc9z9GKbGPUwaLxjoykV+LUD/doMoOyRoPmX7O73RvDO+yX6Sl8Mv4ABlLaxw==
cleanup function should not be called in not registering onCleanup condition.
cleanup function called in not registering onCleanup condition.
No response
The text was updated successfully, but these errors were encountered:
Your if condition controls when registers onCleanup function. it does not control when vue call onCleanup function.
if
onCleanup
vue
If you register an onCleanup function it would always exist. so you will see the watch method is triggered, and the onCleanup method is also triggered
watch
Sorry, something went wrong.
I see. But there is no way to unregister onCleanup right? Then condition should be inside cleanup function.
I think official guide about onCleanup is unclear for understanding its logic. 😢
Same issue as #5151
fix(reactivity): onCleanup also needs to be cleaned (#8655)
73fd810
close #5151 close #7695
No branches or pull requests
Vue version
3.2.47
Link to minimal reproduction
https://sfc.vuejs.org/#__DEV__eNp9UVtqwzAQvMpWP3HAtugDCqkTUgo9haA49tpxoxeSnHwY372SnHdL/ePdnZ0ZdjSQd63zfY9kQQpbmU47sOh6vWKyE1oZBwMYbFI4lK7awgiNUQJmnjFjkslKSeug4WULy7CXNCW3OH8LWGQkAUshkXj4jNVXCkp+cCxlr+ewXMHAJAClEKQUx5yrNplFLtYPsxSOzKAJ0DVnqfnEhItcklwEw3ejWIWdPxQBxqkYmYxVQaccfAK+cSg0Lx36DqDYPq6GYTp3HAvq2zje9M4pCeuKd9Vuycgxj4fwZyTuADjVthzjPp0IHijo2YCkZEo8E6XOv62S/k3iLewIWEYWp+sY8U8Qeka2zmm7oLSXetfmlRJ07TFqeuk6gVmtxPo5f8pfXmndWXc9z9GKbGPUwaLxjoykV+LUD/doMoOyRoPmX7O73RvDO+yX6Sl8Mv4ABlLaxw==
Steps to reproduce
What is expected?
cleanup function should not be called in not registering onCleanup condition.
What is actually happening?
cleanup function called in not registering onCleanup condition.
System Info
No response
Any additional comments?
No response
The text was updated successfully, but these errors were encountered: