Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/TanStack/query
Browse files Browse the repository at this point in the history
  • Loading branch information
tannerlinsley committed Jul 18, 2022
2 parents 8ac9823 + d097746 commit b57dc17
Show file tree
Hide file tree
Showing 26 changed files with 809 additions and 13,060 deletions.
4 changes: 2 additions & 2 deletions docs/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ or a good ol' `<script>` via
### NPM

```bash
$ npm i react-query@beta
$ npm i @tanstack/react-query
# or
$ yarn add react-query@beta
$ yarn add @tanstack/react-query
```

React Query is compatible with React v16.8+ and works with ReactDOM and React Native.
Expand Down
4 changes: 2 additions & 2 deletions docs/plugins/broadcastQueryClient.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ title: broadcastQueryClient (Experimental)

## Installation

This utility comes packaged with `react-query` and is available under the `react-query/broadcastQueryClient-experimental` import.
This utility comes as a separate package and is available under the `'@tanstack/query-broadcast-client-experimental'` import.

## Usage

Import the `broadcastQueryClient` function, and pass it your `QueryClient` instance, and optionally, set a `broadcastChannel`.

```ts
import { broadcastQueryClient } from 'react-query/broadcastQueryClient-experimental'
import { broadcastQueryClient } from '@tanstack/query-broadcast-client-experimental'

const queryClient = new QueryClient()

Expand Down
2 changes: 1 addition & 1 deletion docs/plugins/createAsyncStoragePersister.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ title: createAsyncStoragePersister

## Installation

This utility comes packaged with `react-query` and is available under the `react-query/createAsyncStoragePersister` import.
This utility comes as a separate package and is available under the `'@tanstack/query-async-storage-persister'` import.

## Usage

Expand Down
4 changes: 2 additions & 2 deletions examples/react/auto-refetching/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
"next": "9.3.2",
"react": "16.13.0",
"react-dom": "16.13.0",
"@tanstack/react-query-devtools": "^4.0.0",
"@tanstack/react-query": "^4.0.0"
"@tanstack/react-query": "^4.0.0",
"@tanstack/react-query-devtools": "^4.0.0"
},
"scripts": {
"dev": "next",
Expand Down
2 changes: 1 addition & 1 deletion examples/react/basic-graphql-request/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
"graphql-request": "^3.1.0",
"react": "^18.0.0",
"react-dom": "^18.0.0",
"@tanstack/react-query-devtools": "^4.0.0",
"@tanstack/react-query": "^4.0.0",
"@tanstack/react-query-devtools": "^4.0.0",
"react-scripts": "3.0.1",
"stop-runaway-react-effects": "^1.2.0",
"styled-components": "^4.3.2"
Expand Down
4 changes: 3 additions & 1 deletion examples/react/basic-typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,10 @@
"broadcast-channel": "^3.4.1",
"react": "^18.0.0",
"react-dom": "^18.0.0",
"@tanstack/react-query-devtools": "^4.0.0",
"@tanstack/react-query": "^4.0.0",
"@tanstack/react-query-devtools": "^4.0.0",
"@tanstack/react-query-persist-client": "^4.0.0",
"@tanstack/query-sync-storage-persister": "^4.0.0",
"react-scripts": "3.0.1",
"stop-runaway-react-effects": "^1.2.0",
"styled-components": "^4.3.2",
Expand Down
2 changes: 1 addition & 1 deletion examples/react/basic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
"broadcast-channel": "^3.4.1",
"react": "^18.0.0",
"react-dom": "^18.0.0",
"@tanstack/react-query-devtools": "^4.0.0",
"@tanstack/react-query": "^4.0.0",
"@tanstack/react-query-devtools": "^4.0.0",
"react-scripts": "3.0.1",
"stop-runaway-react-effects": "^1.2.0",
"styled-components": "^4.3.2"
Expand Down
2 changes: 1 addition & 1 deletion examples/react/custom-hooks/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
"axios": "^0.26.1",
"react": "^18.0.0",
"react-dom": "^18.0.0",
"@tanstack/react-query-devtools": "^4.0.0",
"@tanstack/react-query": "^4.0.0",
"@tanstack/react-query-devtools": "^4.0.0",
"react-scripts": "3.0.1",
"stop-runaway-react-effects": "^1.2.0",
"styled-components": "^4.3.2"
Expand Down
2 changes: 1 addition & 1 deletion examples/react/default-query-function/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
"axios": "^0.26.1",
"react": "^18.0.0",
"react-dom": "^18.0.0",
"@tanstack/react-query-devtools": "^4.0.0",
"@tanstack/react-query": "^4.0.0",
"@tanstack/react-query-devtools": "^4.0.0",
"react-scripts": "3.0.1",
"stop-runaway-react-effects": "^1.2.0",
"styled-components": "^4.3.2"
Expand Down
4 changes: 2 additions & 2 deletions examples/react/focus-refetching/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
"next": "9.3.2",
"react": "16.13.0",
"react-dom": "16.13.0",
"@tanstack/react-query-devtools": "^4.0.0",
"@tanstack/react-query": "^4.0.0"
"@tanstack/react-query": "^4.0.0",
"@tanstack/react-query-devtools": "^4.0.0"
},
"scripts": {
"dev": "next",
Expand Down
4 changes: 2 additions & 2 deletions examples/react/load-more-infinite-scroll/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
"react": "16.13.0",
"react-dom": "16.13.0",
"react-intersection-observer": "^8.33.1",
"@tanstack/react-query-devtools": "^4.0.0",
"@tanstack/react-query": "^4.0.0"
"@tanstack/react-query": "^4.0.0",
"@tanstack/react-query-devtools": "^4.0.0"
},
"scripts": {
"dev": "next",
Expand Down
2 changes: 1 addition & 1 deletion examples/react/nextjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
"next": "latest",
"react": "^18.0.0",
"react-dom": "^18.0.0",
"@tanstack/react-query-devtools": "^4.0.0",
"@tanstack/react-query": "^4.0.0",
"@tanstack/react-query-devtools": "^4.0.0",
"resolve-from": "^5.0.0",
"web-streams-polyfill": "^3.0.3"
},
Expand Down
Loading

0 comments on commit b57dc17

Please sign in to comment.