watcher on async actions not automatically stopped on vue 3.5 (while vue 3.4 works fine) #2787
Unanswered
natuan62
asked this question in
Help and Questions
Replies: 1 comment
-
Hi @posva if i moved watch to up, it works fine async init() {
const design = computed(() => this.router.currentRoute.value.params.designId as string);
watch(design, () => {
console.log('14 watch', design.value);
this.designId = Number(design.value);
});
await sleep(1000);
}, |
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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Reproduction
source in
vue-3.5-pinia-test.zip
(sorry i try but still can't config source on a reproduction link)vue-3.5-pinia-test.zip
Steps to reproduce the bug
I not sure this is vue 3.5 bug or pinia (because vue 3.4 still work fine)
vue-3.5-pinia-test.zip
Expected behavior
Actual behavior
Additional information
demo.pinia.mp4
Beta Was this translation helpful? Give feedback.
All reactions