Skip to content
This repository has been archived by the owner on Nov 7, 2023. It is now read-only.

Components were rendered twice? #16

Closed
younggglcy opened this issue Sep 11, 2022 · 3 comments
Closed

Components were rendered twice? #16

younggglcy opened this issue Sep 11, 2022 · 3 comments

Comments

@younggglcy
Copy link
Contributor

younggglcy commented Sep 11, 2022

As the title described, it's unexpected.

Minimal repro link

Repro steps

  1. pnpm i
  2. pnpm dev

Type something and see the terminal.It was logged twice(before this PR has been merged, it was 4 times).

@younggglcy
Copy link
Contributor Author

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?

@younggglcy younggglcy changed the title useInput will trigger its callback function twice Components were rendered twice? Sep 18, 2022
@webfansplz
Copy link
Owner

It's actually a printout duplication issue,Let's ignore it for the moment.

@younggglcy
Copy link
Contributor Author

Thanks for answering~

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants