SIGN IN SIGN UP
TanStack / query UNCLAIMED

🤖 Powerful asynchronous state management, server-state utilities and data fetching for the web. TS/JS, React Query, Solid Query, Svelte Query and Vue Query.

0 0 13 TypeScript

fix(vue-query): allow computed ref as queryKey property in queryOptions (#10530)

* fix(vue-query): allow computed ref as queryKey property in queryOptions

Closes #10525

* fix(vue-query): widen queryKey to MaybeRefOrGetter to match enabled

toValueDeep already calls `() => T` at runtime, so the queryKey type
should accept the same reactive forms as enabled: Ref, ComputedRef,
and getters. Adds a getter test and updates the changeset.

---------

Co-authored-by: Dominik Dorfmeister 🔮 <office@dorfmeister.cc>
Co-authored-by: Damian Osipiuk <osipiukd+git@gmail.com>
P
palkim committed
139e67ccab2c8efba7c4dccdffa6f447350446ae
Parent: 299447b
Committed by GitHub <noreply@github.com> on 5/13/2026, 9:12:23 PM