You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
At this moment is not possible to specify any mutationOption(retry, retryDelay, etc..) for the commerce-sdk-react mutations hooks
Describe the solution you'd like
I would like to add a new parameter in each mutation hook method to pass the mutationOptions
Describe alternatives you've considered
The other alternative a consider was to use the commerce-sdk-isomorphic to use the mutation with the mutationOptions but then I would have to implement the cache invalidation done for every mutation from the commerce-sdk-react
Additional context
In our current pwa-kit checkout implementation we have combined the shipping, billing and shipping method steps in one single step, but since there is no mutation to update the basket with the 3 elements at the same time we need to do 3 independent submits. Since this is not atomic and any of the request could fail we wanted to create some retry mechanism just in case
The text was updated successfully, but these errors were encountered:
daniel-delatorre-xplore
changed the title
MutationOptions support for the commerce-sdk-react mutations hooks
MutationOptions support for the commerce-sdk-react mutation hooks
Dec 2, 2024
Is your feature request related to a problem? Please describe.
At this moment is not possible to specify any mutationOption(retry, retryDelay, etc..) for the commerce-sdk-react mutations hooks
Describe the solution you'd like
I would like to add a new parameter in each mutation hook method to pass the mutationOptions
Describe alternatives you've considered
The other alternative a consider was to use the commerce-sdk-isomorphic to use the mutation with the mutationOptions but then I would have to implement the cache invalidation done for every mutation from the commerce-sdk-react
Additional context
In our current pwa-kit checkout implementation we have combined the shipping, billing and shipping method steps in one single step, but since there is no mutation to update the basket with the 3 elements at the same time we need to do 3 independent submits. Since this is not atomic and any of the request could fail we wanted to create some retry mechanism just in case
The text was updated successfully, but these errors were encountered: