Skip to content

Commit 7fa11ed

Browse files
committed
Fix documentation
1 parent fa92912 commit 7fa11ed

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/List.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1178,6 +1178,7 @@ const ProductList = () => (
11781178

11791179
You might want to allow data to be fetched only when at least some filters have been set. You can leverage TanStack react-query `enabled` option for that. It accepts a function that receives the query as its only parameter. As react-admin always format the `queryKey` as `[ResourceName, DataProviderMethod, DataProviderParams]`, you can check that there is at least a filter in this function:
11801180

1181+
{% raw %}
11811182
```tsx
11821183
export const PostList = () => (
11831184
<List
@@ -1193,6 +1194,7 @@ export const PostList = () => (
11931194
</List>
11941195
)
11951196
```
1197+
{% endraw %}
11961198

11971199
## Accessing Extra Response Data
11981200

0 commit comments

Comments
 (0)