Skip to content

Commit 8413932

Browse files
authored
docs: add axios library to prefetching example (TanStack#791)
1 parent 270fa0f commit 8413932

File tree

3 files changed

+22
-2
lines changed

3 files changed

+22
-2
lines changed

examples/prefetching/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"main": "index.js",
55
"license": "MIT",
66
"dependencies": {
7+
"axios": "0.19.2",
78
"isomorphic-unfetch": "3.0.0",
89
"next": "9.3.2",
910
"react": "16.13.0",

examples/prefetching/yarn.lock

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1494,6 +1494,13 @@ autoprefixer@^9.6.1:
14941494
postcss "^7.0.19"
14951495
postcss-value-parser "^4.0.2"
14961496

1497+
axios@0.19.2:
1498+
version "0.19.2"
1499+
resolved "https://registry.yarnpkg.com/axios/-/axios-0.19.2.tgz#3ea36c5d8818d0d5f8a8a97a6d36b86cdc00cb27"
1500+
integrity sha512-fjgm5MvRHLhx+osE2xoekY70AhARk3a6hkN+3Io1jc00jtquGvxYlKlsFUhmUET0V5te6CcZI7lcv2Ym61mjHA==
1501+
dependencies:
1502+
follow-redirects "1.5.10"
1503+
14971504
babel-code-frame@^6.22.0:
14981505
version "6.26.0"
14991506
resolved "https://registry.yarnpkg.com/babel-code-frame/-/babel-code-frame-6.26.0.tgz#63fd43f7dc1e3bb7ce35947db8fe369a3f58c74b"
@@ -2279,6 +2286,13 @@ debug@2.6.9, debug@^2.2.0, debug@^2.3.3:
22792286
dependencies:
22802287
ms "2.0.0"
22812288

2289+
debug@=3.1.0:
2290+
version "3.1.0"
2291+
resolved "https://registry.yarnpkg.com/debug/-/debug-3.1.0.tgz#5bb5a0672628b64149566ba16819e61518c67261"
2292+
integrity sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==
2293+
dependencies:
2294+
ms "2.0.0"
2295+
22822296
debug@^3.0.0, debug@^3.2.6:
22832297
version "3.2.6"
22842298
resolved "https://registry.yarnpkg.com/debug/-/debug-3.2.6.tgz#e83d17de16d8a7efb7717edbe5fb10135eee629b"
@@ -2791,6 +2805,13 @@ flush-write-stream@^1.0.0:
27912805
inherits "^2.0.3"
27922806
readable-stream "^2.3.6"
27932807

2808+
follow-redirects@1.5.10:
2809+
version "1.5.10"
2810+
resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.5.10.tgz#7b7a9f9aea2fdff36786a94ff643ed07f4ff5e2a"
2811+
integrity sha512-0V5l4Cizzvqt5D44aTXbFZz+FtyXV1vrDN6qrelxtfYQKW0KO0W2T/hkE8xvGa/540LkZlkaUjO4ailYTFtHVQ==
2812+
dependencies:
2813+
debug "=3.1.0"
2814+
27942815
follow-redirects@^1.0.0:
27952816
version "1.10.0"
27962817
resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.10.0.tgz#01f5263aee921c6a54fb91667f08f4155ce169eb"

src/react/useBaseQuery.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
import React from 'react'
22

3-
//
4-
53
import { useQueryCache } from './ReactQueryCacheProvider'
64
import { useRerenderer } from './utils'
75

0 commit comments

Comments
 (0)