Vue 3: How to access other plugins in a plugin?

Viewed 283

In a component's <script setup> block, I can access plugins with inject().

But how can I access other plugins' provide() in a later-use()d plugin?

I hoped there would be app.inject() in the app object that passed to the plugin's install() function, but there is no such function.

Maybe I can use _context property of the app project, but it seems like a hack.

0 Answers
Related