Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(medusa-react): Allow setting maxRetries on MedusaProvider #5765

Merged
merged 3 commits into from
Nov 29, 2023

Conversation

kasperkristensen
Copy link
Contributor

@kasperkristensen kasperkristensen commented Nov 29, 2023

What

  • Allows users to specify a maxRetries param on the MedusaProvider. This is passed on to the underlying medusa-js client, and will retry failed request the X amount of times specified in the param. If not provided the maxRetries default to 3.

@kasperkristensen kasperkristensen requested a review from a team as a code owner November 29, 2023 13:47
Copy link

changeset-bot bot commented Nov 29, 2023

🦋 Changeset detected

Latest commit: 030901a

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
medusa-react Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

vercel bot commented Nov 29, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
api-reference 🔄 Building (Inspect) Visit Preview 💬 Add feedback Nov 29, 2023 2:04pm
2 Ignored Deployments
Name Status Preview Comments Updated (UTC)
docs-ui ⬜️ Ignored (Inspect) Visit Preview Nov 29, 2023 2:04pm
medusa-docs ⬜️ Ignored (Inspect) Visit Preview Nov 29, 2023 2:04pm

@kasperkristensen
Copy link
Contributor Author

/snapshot-this

Copy link
Contributor

🚀 A snapshot release has been made for this PR

Test the snapshots by updating your package.json with the newly published versions:

yarn add @medusajs/link-modules@0.2.5-snapshot-20231129135352
yarn add @medusajs/medusa@1.18.2-snapshot-20231129135352
yarn add medusa-react@9.0.12-snapshot-20231129135352
yarn add @medusajs/modules-sdk@1.12.5-snapshot-20231129135352
yarn add @medusajs/pricing@0.1.6-snapshot-20231129135352
yarn add @medusajs/product@0.3.6-snapshot-20231129135352
yarn add @medusajs/utils@1.11.2-snapshot-20231129135352

Latest commit: f802e24

@olivermrbl olivermrbl merged commit 4e9d954 into develop Nov 29, 2023
12 checks passed
This was referenced Nov 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants