Hi, I'm having some issues using the app-extension-apollo for Quasar. I have some queries and mutations in a 'composable.ts' file. This file is imported into a Vue file. If I use it in the root of the 'setup()' composition API, it works fine. However, if I want to execute the same query or mutation inside a function within the same 'setup()', it returns this error message: "Apollo client with id 'default' not found. Use 'app.runWithContext()' or 'provideApolloClient()' if you are outside of a component setup." To solve this, I had to provide an Apollo Client in the same Vue file. It works, but this cannot be the final solution because I'm going to have to create this Apollo Client inside every Vue file. Any suggestions?
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (0)