@tanstack/vue-query@5.99.2
cortezaproject/corteza@tanstack/vue-query@5.99.2Apr 19, 2026by github-actions[bot]
AI Summary
Fixes a regression in Vue Query where the enabled property in queryOptions only accepted getter functions, now supporting booleans, refs, and computed refs.
Key Highlights
- Fixed enabled property to accept computed refs and reactive values
- Fixed regression introduced in #10452
- Supports boolean, Ref, ComputedRef, getter functions, and predicates
New Features
- Enhanced support for reactive values in query options
Full Release Notes
### Patch Changes
- fix(vue-query): allow computed ref and other reactive values as `enabled` property in queryOptions ([#10465](https://github.com/TanStack/query/pull/10465))
This fixes a regression introduced in #10452 where `queryOptions` only accepted getter functions for the `enabled` property, but not `computed` refs or other reactive values.
Now the `enabled` property in `queryOptions` correctly accepts:
- `boolean` values
- `Ref<boolean>`
- `ComputedRef<boolean>`
- `() => boolean` getter functions
- `(query) => boolean` query predicate functions
- Updated dependencies \[]:
- @tanstack/query-core@5.99.2