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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -300,7 +300,7 @@ View [react-router-dom’s 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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user