getcurrentInstance has been removed from the official api area because the project is now being upgraded from vue2 to vue3. Some public global properties and methods are bound in main.js. How to migrate this? If the properties and instances of the component cannot be obtained if #11486
Replies: 4 comments 6 replies
-
The current API only provides app.config.globalProperties to set global properties and methods, but does not provide corresponding properties and methods to obtain the set global values. This is a bit puzzling. |
Beta Was this translation helpful? Give feedback.
-
I can't decipher what your problem is. Can you share an example of the problem you are trying to solve ? |
Beta Was this translation helpful? Give feedback.
-
ref: stackoverflow Vue 3: Is getCurrentInstance() deprecated?
|
Beta Was this translation helpful? Give feedback.
-
The project is currently being restructured and upgraded to vue3. The project size is very large, with more than 1 million rows. I am worried about the instability of the API in the future. I discovered this problem during the early research. |
Beta Was this translation helpful? Give feedback.
-
getcurrentInstance has been removed from the official api area because the project is now being upgraded from vue2 to vue3. Some public global properties and methods are bound in main.js. How to migrate this? If the properties and instances of the component cannot be obtained if
Beta Was this translation helpful? Give feedback.
All reactions