Skip to content

Commit dcf9acc

Browse files
committed
docs: update README with minor changes
1 parent a6c9e8b commit dcf9acc

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

packages/react-client/README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ function App() {
174174
With the client set up, you can now use the generated Hooks in your React Components to fetch data, execute mutations,
175175
and more.
176176

177-
### [useQuery 🔗](https://tanstack.com/query/latest/docs/framework/react/reference/useQuery)
177+
### [useQuery(...) 🔗](https://tanstack.com/query/latest/docs/framework/react/reference/useQuery)
178178

179179
```ts
180180
/**
@@ -193,7 +193,7 @@ const { data, error, isPending } = qraft.entities.getEntities.useQuery({
193193
});
194194
```
195195

196-
### [useMutation 🔗](https://tanstack.com/query/latest/docs/framework/react/reference/useMutation)
196+
### [useMutation(...) 🔗](https://tanstack.com/query/latest/docs/framework/react/reference/useMutation)
197197

198198
#### With predefined parameters
199199

@@ -253,7 +253,7 @@ mutation.mutate({
253253
});
254254
```
255255

256-
### [useMutationState 🔗](https://tanstack.com/query/latest/docs/framework/react/reference/useMutationState)
256+
### [useMutationState(...) 🔗](https://tanstack.com/query/latest/docs/framework/react/reference/useMutationState)
257257

258258
Mutation state is a helper hook that provides the current state of a mutation globally.
259259
It could be used to track the status of a mutation in any component, which is useful for showing loading spinners or
@@ -281,7 +281,7 @@ useEffect(() => {
281281
}, [mutate, mutationState?.status]);
282282
```
283283

284-
### [useInfiniteQuery 🔗](https://tanstack.com/query/latest/docs/framework/react/reference/useInfiniteQuery)
284+
### [useInfiniteQuery(...) 🔗](https://tanstack.com/query/latest/docs/framework/react/reference/useInfiniteQuery)
285285

286286
#### _Offset-based_
287287

@@ -358,7 +358,7 @@ infiniteQuery.fetchNextPage();
358358
infiniteQuery.fetchPreviousPage();
359359
```
360360

361-
### [useQueries 🔗](https://tanstack.com/query/latest/docs/framework/react/reference/useQueries)
361+
### [useQueries(...) 🔗](https://tanstack.com/query/latest/docs/framework/react/reference/useQueries)
362362

363363
```ts
364364
/**
@@ -397,7 +397,7 @@ qraft.entities.getEntities.useQueries({
397397
});
398398
```
399399

400-
### [invalidateQueries 🔗](https://tanstack.com/query/latest/docs/reference/QueryClient#queryclientinvalidatequeries)
400+
### [invalidateQueries(...) 🔗](https://tanstack.com/query/latest/docs/reference/QueryClient#queryclientinvalidatequeries)
401401

402402
[Queries Invalidation 🔗](https://tanstack.com/query/latest/docs/framework/react/guides/query-invalidation) is possible
403403
using `<operation>.invalidateQueries(..)` method.
@@ -510,9 +510,9 @@ same interface as `invalidateQueries(..)`, but it will cancel the queries instea
510510

511511
Supported Suspense Queries are:
512512

513-
- [useSuspenseQuery 🔗](https://tanstack.com/query/latest/docs/framework/react/reference/useSuspenseQuery)
514-
- [useSuspenseInfiniteQuery 🔗](https://tanstack.com/query/latest/docs/framework/react/reference/useSuspenseInfiniteQuery)
515-
- [useSuspenseQueries 🔗](https://tanstack.com/query/latest/docs/framework/react/reference/useSuspenseQueries)
513+
- [useSuspenseQuery(...) 🔗](https://tanstack.com/query/latest/docs/framework/react/reference/useSuspenseQuery)
514+
- [useSuspenseInfiniteQuery(...) 🔗](https://tanstack.com/query/latest/docs/framework/react/reference/useSuspenseInfiniteQuery)
515+
- [useSuspenseQueries(...) 🔗](https://tanstack.com/query/latest/docs/framework/react/reference/useSuspenseQueries)
516516

517517
### Documentation in Progress 🚧
518518

0 commit comments

Comments
 (0)