Skip to content

Commit 512610b

Browse files
committed
docs: remove devtools disclaimer, prettify
1 parent afc782f commit 512610b

File tree

1 file changed

+9
-15
lines changed

1 file changed

+9
-15
lines changed

README.md

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff 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
```

0 commit comments

Comments
 (0)