You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
setup() {
const num = ref(0);
watchEffect(() => {
console.log("num change will not trigger this effect");
num.value = 1;
});
setTimeout(() => {
num.value++;
}, 5000);
return {
num
};
}
in vue3, it's right, watchEffect only triggered by value getter(not setter), in composition-api, it will triggered by value setter which means it's not right
in vue3, it's right, watchEffect only triggered by value getter(not setter), in composition-api, it will triggered by value setter which means it's not right
vue3-demo https://stackblitz.com/edit/vue-qfisdz
sorry, I did't create a demo for @vue/composition-api.
The text was updated successfully, but these errors were encountered: