File tree 1 file changed +5
-2
lines changed
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -70,6 +70,7 @@ The `useGetList` parameter accepts the following options:
70
70
* [ ` page ` ] ( #page )
71
71
* [ ` perPage ` ] ( #perpage )
72
72
* [ ` sort ` ] ( #sort )
73
+ * [ ` filterCallback ` ] ( #filtercallback )
73
74
74
75
## ` filter `
75
76
@@ -242,9 +243,10 @@ const {
242
243
refetch, // a function that throws an error, as refetch doesn't make sense for local data
243
244
} = getGetList ({ data });
244
245
```
246
+
245
247
## ` filterCallback `
246
248
247
- Property for custom filter definition. Being able to apply more complex filters using operators
249
+ Property for custom filter definition. Lets you apply local filters to the fetched data.
248
250
249
251
``` jsx
250
252
const { data } = useList ({
@@ -259,4 +261,5 @@ const { data } = useList({
259
261
// data will be
260
262
// [
261
263
// { id: 2, name: 'Sylvester' },
262
- // ]
264
+ // ]
265
+ ```
You can’t perform that action at this time.
0 commit comments