Skip to content
Source
Sign inSign up
TanStack/query
Open History to see the last commit

fix-vue-query-options-enabled.md

14 lines524 Bytes

fix(vue-query): allow computed ref and other reactive values as enabled property in queryOptions

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