···574574575575:::
576576577577+## Reactivity
578578+579579+In Vue applications, you need to wrap the options functions in [`computed()`](https://vuejs.org/guide/essentials/computed) to make them reactive. Otherwise, TanStack Query won't know it should execute the query when its dependencies change.
580580+581581+::: code-group
582582+583583+```js [reactive]
584584+// ✅ Query will execute on `petId` change
585585+const query = useQuery(
586586+ computed(() =>
587587+ getPetByIdOptions({
588588+ path: {
589589+ petId: petId.value,
590590+ },
591591+ }),
592592+ ),
593593+);
594594+```
595595+596596+```js [static]
597597+// ❌ Query will execute only once
598598+const query = useQuery(
599599+ getPetByIdOptions({
600600+ path: {
601601+ petId: petId.value,
602602+ },
603603+ }),
604604+);
605605+```
606606+607607+:::
608608+577609## API
578610579611You can view the complete list of options in the [UserConfig](https://github.com/hey-api/openapi-ts/blob/main/packages/openapi-ts/src/plugins/@tanstack/react-query/types.d.ts) interface.