Vue 3 Composition API reuse in multiple components
Version
3.2.21
Reproduction link
Steps to reproduce
Hello, good morning - I use the Composition API reuse method and to reduce the coding of several functions and variables required in common components, I have created a file with the Composition API reuse method, and within each component the required functions and data I called
What is expected?
Suppose we have 5 variables and 5 functions in a Composition API reuse. Well, we may need all of them in one component.
What is actually happening?
I noticed that when I call a Composition API reuse function on any component, all the data and all the functions are called.
I do not need all of them and in each case a different number is needed