pinia provideApolloClient() add #819
-
Can a document be written or a plugin made for it? Apollo - graphql |
Beta Was this translation helpful? Give feedback.
Answered by
posva
Nov 22, 2021
Replies: 2 comments 1 reply
-
|
Beta Was this translation helpful? Give feedback.
1 reply
-
Use any copmosition function inside of a setup store: defineStore('id', () => {
useApollo()
provideApollo(...)
return {
// anything you want to expose like a component
}
}) |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
productdevbook
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Use any copmosition function inside of a setup store: