Replies: 1 comment
-
in component:
|
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.
-
Hi,
I have a project that still uses the Vue option API. I want to slowly transition to the compose API and want to start by writing new components in the compose syntax. I am confused how to register both apollo-option and apollo-composable at the same time:
I have the following code that registers apollo-option:
registerApollo.js
main.js
When I now just try to import for example
useMutation
from@vue/apollo-composable
, then I get the errorApollo client with id default not found. Use provideApolloClient() if you are outside of a component setup.
I'm guessing I have to somehow register
apollo-composable
somewhere in myregisterApollo.js
file, but I'm unsure how and I have not yet found any docs that explain it.Beta Was this translation helpful? Give feedback.
All reactions