diff --git a/examples/react/algolia/package.json b/examples/react/algolia/package.json index aab9b0326a..48bae7aa7d 100644 --- a/examples/react/algolia/package.json +++ b/examples/react/algolia/package.json @@ -24,17 +24,5 @@ "@vitejs/plugin-react": "^4.2.1", "typescript": "5.3.3", "vite": "^5.2.11" - }, - "browserslist": { - "production": [ - ">0.2%", - "not dead", - "not op_mini all" - ], - "development": [ - "last 1 chrome version", - "last 1 firefox version", - "last 1 safari version" - ] } } diff --git a/examples/react/auto-refetching/package.json b/examples/react/auto-refetching/package.json index 12cbf5a5d0..3ec3ef35e0 100644 --- a/examples/react/auto-refetching/package.json +++ b/examples/react/auto-refetching/package.json @@ -10,7 +10,6 @@ "dependencies": { "@tanstack/react-query": "^5.50.1", "@tanstack/react-query-devtools": "^5.50.1", - "axios": "^1.6.8", "isomorphic-unfetch": "4.0.2", "next": "^14.2.4", "react": "^18.2.0", diff --git a/examples/react/auto-refetching/src/pages/index.js b/examples/react/auto-refetching/src/pages/index.js index 09831ec7d8..ace9bc343a 100644 --- a/examples/react/auto-refetching/src/pages/index.js +++ b/examples/react/auto-refetching/src/pages/index.js @@ -1,5 +1,4 @@ import React from 'react' -import axios from 'axios' // @@ -30,8 +29,8 @@ function Example() { const { status, data, error, isFetching } = useQuery({ queryKey: ['todos'], queryFn: async () => { - const res = await axios.get('/api/data') - return res.data + const response = await fetch('/api/data') + return await response.json() }, // Refetch the data every second refetchInterval: intervalMs, diff --git a/examples/react/basic-graphql-request/.eslintrc b/examples/react/basic-graphql-request/.eslintrc deleted file mode 100644 index 4e03b9e10b..0000000000 --- a/examples/react/basic-graphql-request/.eslintrc +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": ["plugin:react/jsx-runtime", "plugin:react-hooks/recommended"] -} diff --git a/examples/react/basic-typescript/eslint.config.js b/examples/react/basic-graphql-request/eslint.config.js similarity index 100% rename from examples/react/basic-typescript/eslint.config.js rename to examples/react/basic-graphql-request/eslint.config.js diff --git a/examples/react/basic-graphql-request/index.html b/examples/react/basic-graphql-request/index.html index 433cf93816..f098940196 100644 --- a/examples/react/basic-graphql-request/index.html +++ b/examples/react/basic-graphql-request/index.html @@ -11,6 +11,6 @@
- +