fix: collected usage count of components
@antfu is already working on this.
Since Nov 20, 2023.
- Dominant language
- TypeScript
- Stars
- 3.3k
- Forks
- 214
- Avg merge
- 13h 22m
- Merged PRs (30d)
- 18
Description
🐛 The bug
Usage count of components (user and build-in) seems to be incorrect (in combination with @nuxt/i18n?)
If you take a look at the given stackblitz example you can find CiButton to be used at pages/index.vue and pages/about/index.vue. At pages/about/index.vue there is also the build-in ClientOnly component used.
If you open the DevTools the usage count of the components seems to be incorrect.
🛠️ To reproduce
https://stackblitz.com/edit/github-3wcxar
🌈 Expected behavior
The usage count of the CiButton component should be 2 and point to the related pages.
The usage count of ClientOnly should be 1 and point to the related page.
ℹ️ Additional context
I am using https://i18n.nuxtjs.org/ module and maybe this behavior is related to the usage of this module.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.