Skip to content

Commit a3cdf51

Browse files
committed
Merge remote-tracking branch 'tannerlinsley/main' into beta
2 parents dc8aec7 + 1d9c212 commit a3cdf51

File tree

7 files changed

+15
-7
lines changed

7 files changed

+15
-7
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,13 @@ name: ci
22
concurrency:
33
group: publish-${{ github.github.base_ref }}
44
cancel-in-progress: true
5-
on: [push]
5+
on:
6+
workflow_dispatch:
7+
inputs:
8+
tag:
9+
description: override release tag
10+
required: false
11+
push:
612
jobs:
713
test-and-publish:
814
if: github.repository == 'TanStack/query' && github.event_name != 'pull_request'
@@ -28,3 +34,4 @@ jobs:
2834
GH_TOKEN: ${{ secrets.GH_TOKEN }}
2935
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
3036
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
37+
TAG: ${{ inputs.tag }}

docs/guides/mutations.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ export default function App() {
320320
}
321321
```
322322

323-
We also have an extensive [offline example](../examples/offline) that covers both queries and mutations.
323+
We also have an extensive [offline example](../examples/react/offline) that covers both queries and mutations.
324324

325325
## Further reading
326326

docs/guides/ssr.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ import { dehydrate, QueryClient, useQuery } from '@tanstack/react-query';
8383
export async function getStaticProps() {
8484
const queryClient = new QueryClient()
8585

86-
await queryClient.prefetchQuery('posts', getPosts)
86+
await queryClient.prefetchQuery(['posts'], getPosts)
8787

8888
return {
8989
props: {

docs/reference/QueryCache.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const queryCache = new QueryCache({
1919
}
2020
})
2121

22-
const query = queryCache.find('posts')
22+
const query = queryCache.find(['posts'])
2323
```
2424

2525
Its available methods are:

docs/reference/useQuery.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,10 +149,10 @@ const result = useQuery({
149149
- This function will fire if the query encounters an error and will be passed the error.
150150
- `onSettled: (data?: TData, error?: TError) => void`
151151
- Optional
152-
- This function will fire any time the query is either successfully fetched or errors and be passed either the data or error
152+
- This function will fire any time the query is either successfully fetched or errors and be passed either the data or error.
153153
- `select: (data: TData) => unknown`
154154
- Optional
155-
- This option can be used to transform or select a part of the data returned by the query function.
155+
- This option can be used to transform or select a part of the data returned by the query function. It affects the returned `data` value, but does not affect what gets stored in the query cache.
156156
- `suspense: boolean`
157157
- Optional
158158
- Set this to `true` to enable suspense mode.

examples/react/simple/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
To run this example:
44

55
- `npm install`
6-
- `npm run start`
6+
- `npm run dev`

examples/react/simple/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"name": "@tanstack/query-example-react-simple",
33
"private": true,
44
"version": "0.0.1",
5+
"main": "src/index.jsx",
56
"scripts": {
67
"dev": "vite",
78
"build": "vite build",

0 commit comments

Comments
 (0)