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
-
Hello,
I'm trying to follow the VUE framework hook example :
But it seens that
pglite-vue
doesn't exportprovidePGlite
:When looking the
pglite-vue
script tests source code repository,providePGlite
andinjectPGlite
are 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
injectPGlite
inside a component?Many thanks,
Ricardo.
Beta Was this translation helpful? Give feedback.
All reactions