Vue 3 provide / injection use example #287
Unanswered
ricardolenzi
asked this question in
Q&A
Replies: 1 comment
-
|
I found that I don't need the Main script
Here a simple example of how it works: Maybe someone can explain what the purpose of the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I'm trying to follow the VUE framework hook example :
But it seens that
pglite-vuedoesn't exportprovidePGlite:When looking the
pglite-vuescript tests source code repository,providePGliteandinjectPGliteare returned by themakePGliteDependencyInjector, not imported, like this:Is it the documentation outdated?
Could someone give me a simple example using Composition API of how to use
injectPGliteinside a component?Many thanks,
Ricardo.
Beta Was this translation helpful? Give feedback.
All reactions