docs: add a note about installing tanstack query as a dev dependency (#11123)

This commit is contained in:
Shahed Nasser authored and GitHub committed 2025-01-23 19:16:52 +02:00
1 parent eace10e66b
commit 2fe98c9712
6 files changed
+36

No files matched your search

@@ -311,6 +311,12 @@ You can change the query to send a request to a custom API route as explained in
</Note>
<Note type="warning">
Do not install Tanstack Query as that will cause unexpected errors in your development. If you prefer installing it for better auto-completion in your code editor, make sure to install `v5.64.2` as a development dependency.
</Note>
`useQuery` returns an object containing `data`, which holds the response fields including the products and pagination fields.
Then, to display the table, replace the `TODO` with the following: