nuxt-modules / apollo

Nuxt.js module to use Vue-Apollo. The Apollo integration for GraphQL.

Home Page:https://apollo.nuxtjs.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Variables passed as ref are not passed along to apollo

filiphazardous opened this issue · comments

Environment


  • Operating System: Linux
  • Node Version: v18.17.1
  • Nuxt Version: 3.10.3
  • CLI Version: 3.10.1
  • Nitro Version: 2.8.1
  • Package Manager: pnpm@8.15.4
  • Builder: -
  • User Config: debug, ssr, css, formkit, components, modules, typescript, runtimeConfig, vite, tailwindcss, i18n, headlessui, apollo, unionen-apollo-codegen, graphqlServer, primevue, pinia, hooks, build
  • Runtime Modules: @formkit/nuxt@1.6.0, @formkit/auto-animate/nuxt@0.8.1, @nuxtjs/i18n@8.1.1, @nuxtjs/tailwindcss@6.11.4, nuxt-headlessui@1.1.5, nuxt-primevue@0.3.1, @nuxtjs/apollo@5.0.0-alpha.13, nuxt-graphql-server@3.0.0, @nuxt/test-utils/module@3.11.0, @pinia/nuxt@0.5.1, @nuxtjs/google-fonts@3.1.3
  • Build Modules: -

Describe the bug

Variables passed as ref are not passed along to apollo

Expected behaviour

unref is called on variables in src/runtime/composables.ts

Reproduction

Just look at the diff in this PR: #601

Additional context

Since we already pass the variables to useAsyncData watch, I guess we want to support this use case?

Logs

No response