docs: fix medusa-react guide + specify react-query version (#5918)

* docs: fix medusa-react guide by adding missing link

* fix link

* add v4.22 as the supported version of react-query
This commit is contained in:
Shahed Nasser
2023-12-18 16:01:24 +02:00
committed by GitHub
parent bd60efbe65
commit 8cb53da34e
6 changed files with 13 additions and 19 deletions
+1 -1
View File
@@ -50,7 +50,7 @@ If you're using TypeScript in your project, it's highly recommended to setup you
To install Medusa React and its required dependencies, run the following command in the root directory of the Medusa backend:
```bash npm2yarn
npm install medusa-react @tanstack/react-query
npm install medusa-react @tanstack/react-query@4.22
```
### Implement Helper Resources
+1 -1
View File
@@ -331,7 +331,7 @@ export default CustomPage
## Querying and Mutating Data
You might need to interact with the Medusa backend from your admin route. To do so, you can utilize the [Medusa React package](../medusa-react/overview.mdx). It contains a collection of queries and mutation built on `@tanstack/react-query` that lets you interact with the Medusa backend.
You might need to interact with the Medusa backend from your admin route. To do so, you can utilize the [Medusa React package](../medusa-react/overview.mdx). It contains a collection of queries and mutation built on `@tanstack/react-query@4.22` that lets you interact with the Medusa backend.
:::note
+1 -1
View File
@@ -300,7 +300,7 @@ View [react-router-doms documentation](https://reactrouter.com/en/main) for
## Querying and Mutating Data
You might need to interact with the Medusa backend from your admin setting page. To do so, you can utilize the Medusa React package. It contains a collection of queries and mutations built on `@tanstack/react-query` that lets you interact with the Medusa backend.
You might need to interact with the Medusa backend from your admin setting page. To do so, you can utilize the Medusa React package. It contains a collection of queries and mutations built on `@tanstack/react-query@4.22` that lets you interact with the Medusa backend.
:::note