Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/src/pages/guides/filters.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ A query filter is an object with certain conditions to match a query with:
// Cancel all queries
await queryClient.cancelQueries()

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

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

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

Expand Down