docs: add a note about installing tanstack query as a dev dependency (#11123)
This commit is contained in:
@@ -352,6 +352,12 @@ In admin customizations, use [Tanstack Query](https://tanstack.com/query/latest)
|
||||
|
||||
Tanstack Query is installed by default in your Medusa application.
|
||||
|
||||
<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>
|
||||
|
||||
Use the [configured SDK](#setup-js-sdk) with the [useQuery](https://tanstack.com/query/latest/docs/framework/react/reference/useQuery#usequery) Tanstack Query hook to send `GET` requests, and [useMutation](https://tanstack.com/query/latest/docs/framework/react/reference/useMutation#usemutation) hook to send `POST` or `DELETE` requests.
|
||||
|
||||
For example:
|
||||
|
||||
Reference in New Issue
Block a user