Skip to content

Commit 3a13b3e

Browse files
authored
docs(Query Filters): Correct/Make More Exact: Query Filter Object Code Snippet Comments (TanStack#2190)
1. Make comment in the code snippet for `removeQueries` more exact 2. correct comment for `refetchQueries` used for `posts` query key, to use 'posts' instead of 'post'.
1 parent 92435c7 commit 3a13b3e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/src/pages/guides/filters.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ A query filter is an object with certain conditions to match a query with:
1313
// Cancel all queries
1414
await queryClient.cancelQueries()
1515

16-
// Remove all inactive queries
16+
// Remove all inactive queries that begin with `posts` in the key
1717
queryClient.removeQueries('posts', { inactive: true })
1818

1919
// Refetch all active queries
2020
await queryClient.refetchQueries({ active: true })
2121

22-
// Refetch all active queries that begin with `post` in the key
22+
// Refetch all active queries that begin with `posts` in the key
2323
await queryClient.refetchQueries('posts', { active: true })
2424
```
2525

0 commit comments

Comments
 (0)