You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/framework/react/guides/filters.md
+18
Original file line number
Diff line number
Diff line change
@@ -70,3 +70,21 @@ A mutation filter object supports the following properties:
70
70
- Allows for filtering mutations according to their status.
71
71
-`predicate?: (mutation: Mutation) => boolean`
72
72
- This predicate function will be used as a final filter on all matching mutations. If no other filters are specified, this function will be evaluated against every mutation in the cache.
73
+
74
+
## Utils
75
+
76
+
### `matchQuery`
77
+
78
+
```tsx
79
+
const isMatching =matchQuery(filters, query)
80
+
```
81
+
82
+
Returns a boolean that indicates whether a query matches the provided set of query filters.
0 commit comments