captivator
cannot import 'useApollo' composable from another composable
in my nuxt app, i decided to use
@nuxtjs/apollo
as the apollo client because it sets up things for me.
to make usage of it more conveneint, i made a composable useGlobalApollo
which exposes the default client.
then, i use it in my pinia stores to fetch using graphql. here is an example auth store:
then i just use the users store whenever needed during auth. currenlty im using it in a page for login and default layout.
34 replies