Skip to content

Commit 94de9b4

Browse files
authored
docs(svelte-query): call 'useIsMutating' a function instead of a hook (#11559)
1 parent 73a016b commit 94de9b4

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

docs/framework/svelte/reference/functions/useIsMutating.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ function useIsMutating(filters?: MutationFilters<unknown, Error, unknown, unknow
99

1010
Defined in: [packages/svelte-query/src/useIsMutating.svelte.ts:28](https://github.com/TanStack/query/blob/main/packages/svelte-query/src/useIsMutating.svelte.ts#L28)
1111

12-
`useIsMutating` is an optional hook that returns the `number` of mutations that your application is
12+
`useIsMutating` is an optional function that returns the `number` of mutations that your application is
1313
running (useful for app-wide loading indicators).
1414

1515
## Parameters

packages/svelte-query/src/useIsMutating.svelte.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { ReactiveValue } from './containers.svelte.js'
33
import type { MutationFilters, QueryClient } from '@tanstack/query-core'
44

55
/**
6-
* `useIsMutating` is an optional hook that returns the `number` of mutations that your application is
6+
* `useIsMutating` is an optional function that returns the `number` of mutations that your application is
77
* running (useful for app-wide loading indicators).
88
*
99
* @param filters - {@link MutationFilters} to narrow down which mutations to count.

0 commit comments

Comments
 (0)