File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ yarn add vue-react-query
4848
49491 . Attach vue-react-query to your Vue application
5050
51- ```
51+ ``` ts
5252 import { createApp } from " vue" ;
5353 import { QueryClient , VUE_QUERY_CLIENT } from " vue-react-query" ;
5454
@@ -62,15 +62,15 @@ yarn add vue-react-query
6262
63632 . Use query
6464
65- ```
65+ ``` ts
6666 import { useQuery } from " vue-react-query" ;
6767
6868 const query = useQuery (" todos" , getTodos );
6969 ```
7070
71713 . If you need to update options on your query dynamically, make sure to pass it as reactive property
7272
73- ```
73+ ``` ts
7474 const id = ref (1 );
7575 const queryKey = reactive ([" todos" , { id }]);
7676 const queryFunction = () => getTodos (id ),
@@ -95,7 +95,7 @@ Check [Examples section](#examples).
9595
9696** _ Disclaimer: Devtools not supported on Vue 2.x_ **
9797
98- ```
98+ ``` vue
9999<script lang="ts">
100100import { defineComponent } from "vue";
101101import { VueQueryDevTools } from "vue-react-query/devtools";
You can’t perform that action at this time.
0 commit comments