Skip to content

@tanstack/vue-query@5.100.11

Choose a tag to compare

@github-actions github-actions released this 18 May 19:47
· 58 commits to main since this release
3e85350

Patch Changes

  • fix(vue-query): allow reactive and getter values as queryKey property in queryOptions (#10530)

    This fixes a regression introduced in #10452 where queryOptions only accepted plain arrays for the queryKey property, but not computed refs, Ref values, or getter functions. The related fix in #10465 only covered the enabled property.

    Now the queryKey property in queryOptions accepts the same reactive forms as enabled:

    • Plain QueryKey arrays
    • Ref<QueryKey>
    • ComputedRef<QueryKey>
    • () => QueryKey (getter)
  • Updated dependencies []:

    • @tanstack/query-core@5.100.11