Closed younggglcy closed 2 years ago
And I just updated the repro. Notice that if adding onMounted
hook to a composable function, then "init" is also logged twice.
onMounted(() => {
console.log('init')
})
So I guess there's maybe something wrong with the rendering mechanism?
It's actually a printout duplication issue,Let's ignore it for the moment.
Thanks for answering~
As the title described, it's unexpected.
Minimal repro link
Repro steps
pnpm i
pnpm dev
Type something and see the terminal.It was logged twice(before this PR has been merged, it was 4 times).