Skip to content

Commit 92c03e2

Browse files
authored
docs(useQuery): remove suspense option in useQuery() v5 (#6187)
1 parent 2b76550 commit 92c03e2

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

docs/react/reference/useQuery.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ const {
5151
select,
5252
staleTime,
5353
structuralSharing,
54-
suspense,
5554
throwOnError,
5655
})
5756
```
@@ -136,11 +135,6 @@ const {
136135
- `select: (data: TData) => unknown`
137136
- Optional
138137
- 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.
139-
- `suspense: boolean`
140-
- Optional
141-
- Set this to `true` to enable suspense mode.
142-
- When `true`, `useQuery` will suspend when `status === 'pending'`
143-
- When `true`, `useQuery` will throw runtime errors when `status === 'error'`
144138
- `initialData: TData | () => TData`
145139
- Optional
146140
- If set, this value will be used as the initial data for the query cache (as long as the query hasn't been created or cached yet)

0 commit comments

Comments
 (0)