Skip to content

pinia provideApolloClient() add #819

Closed Answered by posva
productdevbook asked this question in Help and Questions
Discussion options

You must be logged in to vote

Use any copmosition function inside of a setup store:

defineStore('id', () => {
  useApollo()
  provideApollo(...)

  return {
    // anything you want to expose like a component
  }
})

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@vsqla
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by productdevbook
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #818 on November 22, 2021 16:52.