File tree Expand file tree Collapse file tree 1 file changed +9
-15
lines changed Expand file tree Collapse file tree 1 file changed +9
-15
lines changed Original file line number Diff line number Diff line change @@ -75,27 +75,22 @@ yarn add vue-query
7575 ``` ts
7676 const id = ref (1 );
7777 const queryKey = reactive ([" todos" , { id }]);
78- const queryFunction = () => getTodos (id ),
78+ const queryFunction = () => getTodos (id );
7979 const options = reactive ({
80- staleTime: 60 * 60 ,
81- onSuccess : () => {},
82- });
83-
84- const query = useQuery (
85- queryKey ,
86- queryFunction ,
87- options
88- );
80+ staleTime: 60 * 60 ,
81+ onSuccess : () => {},
82+ });
83+
84+ const query = useQuery (queryKey , queryFunction , options );
8985 ```
9086
9187# DevTools
9288
93- This package provides built-in devtools in the form of a Vue component.
94- Use VueQueryDevTools component in the entry component of your application.
89+ This package provides built-in DevTools in the form of a Vue component.
9590
96- Check [ Examples section ] ( #examples ) .
91+ Use VueQueryDevTools component in the main component of your application .
9792
98- ** _ Disclaimer: Devtools not supported on Vue 2.x _ **
93+ Check [ Examples section ] ( #examples ) .
9994
10095``` vue
10196<script lang="ts">
@@ -111,5 +106,4 @@ export default defineComponent({
111106<template>
112107 <VueQueryDevTools />
113108</template>
114-
115109```
You can’t perform that action at this time.
0 commit comments