1- [ ![ NPM] ( https://img.shields.io/npm/v/vue-react-query )] ( https://www.npmjs.com/package/vue-react-query ) [ ![ NPM] ( https://img.shields.io/npm/l/vue-react-query )] ( https://github.com/DamianOsipiuk/vue-react-query/blob/main/LICENSE )
1+ [ ![ NPM] ( https://img.shields.io/npm/v/vue-query )] ( https://www.npmjs.com/package/vue-query )
2+ [ ![ NPM] ( https://img.shields.io/npm/l/vue-query )] ( https://github.com/DamianOsipiuk/vue-query/blob/main/LICENSE )
3+ [ ![ npm bundle size] ( https://img.shields.io/bundlephobia/minzip/vue-query )] ( https://bundlephobia.com/result?p=vue-query )
24
3- # vue-react- query
5+ # vue-query
46
57Hooks for fetching, caching and updating asynchronous data in Vue.
68
@@ -19,38 +21,38 @@ Based on [react-query](https://github.com/tannerlinsley/react-query)
1921- Load-More + Infinite Scroll Queries w/ Scroll Recovery
2022- Request Cancellation
2123- Dedicated Devtools
22- - [ ![ npm bundle size] ( https://img.shields.io/bundlephobia/minzip/vue-react- query )] ( https://bundlephobia.com/result?p=vue-react -query ) (depending on features imported)
24+ - [ ![ npm bundle size] ( https://img.shields.io/bundlephobia/minzip/vue-query )] ( https://bundlephobia.com/result?p=vue-query ) (depending on features imported)
2325
2426# Examples
2527
2628- 3.x
27- - [ Basic] ( https://github.com/DamianOsipiuk/vue-react- query/tree/main/examples/basic )
28- - [ Multi-Page] ( https://github.com/DamianOsipiuk/vue-react- query/tree/main/examples/multi-page )
29+ - [ Basic] ( https://github.com/DamianOsipiuk/vue-query/tree/main/examples/basic )
30+ - [ Multi-Page] ( https://github.com/DamianOsipiuk/vue-query/tree/main/examples/multi-page )
2931 - Caching - throttle network and then switch between pages
3032 - Deduping requests - click ` change page ` in quick succession and monitor Network tab in devtools.
3133 - Garbage collection - click ` remove page `
3234- 2.x
33- - [ Basic] ( https://github.com/DamianOsipiuk/vue-react- query/tree/main/examples/basic-vue2 .x )
35+ - [ Basic] ( https://github.com/DamianOsipiuk/vue-query/tree/main/examples/basic-vue-2 .x )
3436
3537# Installation
3638
3739```
38- npm install vue-react- query
40+ npm install vue-query
3941```
4042
4143or
4244
4345```
44- yarn add vue-react- query
46+ yarn add vue-query
4547```
4648
4749# Usage
4850
49- 1 . Attach vue-react- query to your Vue application
51+ 1 . Attach vue-query to your Vue application
5052
5153 ``` ts
5254 import { createApp } from " vue" ;
53- import { QueryClient , VUE_QUERY_CLIENT } from " vue-react- query" ;
55+ import { QueryClient , VUE_QUERY_CLIENT } from " vue-query" ;
5456
5557 import App from " ./App.vue" ;
5658
@@ -63,7 +65,7 @@ yarn add vue-react-query
63652 . Use query
6466
6567 ``` ts
66- import { useQuery } from " vue-react- query" ;
68+ import { useQuery } from " vue-query" ;
6769
6870 const query = useQuery (" todos" , getTodos );
6971 ```
@@ -98,7 +100,7 @@ Check [Examples section](#examples).
98100``` vue
99101<script lang="ts">
100102import { defineComponent } from "vue";
101- import { VueQueryDevTools } from "vue-react- query/devtools";
103+ import { VueQueryDevTools } from "vue-query/devtools";
102104
103105export default defineComponent({
104106 name: "App",
0 commit comments