vtex / faststore

Digital commerce toolkit for frontend developers
https://faststore.dev
MIT License
191 stars 61 forks source link

fix: Consider `shouldSplitItem` value from `ValidateCart` mutation response #2528

Closed lucasfp13 closed 1 week ago

lucasfp13 commented 4 weeks ago

What's the purpose of this pull request?

This PR intends to fix the behavior of shouldSplitItem value sent by through the ValidateCart mutation.

Currently, the variable value is being overridden after some mutation calls due to its value not being sent back in the mutation response, so with these changes we will consider the same value set in the store config.

How to test it?

Perform actions that triggers the ValidateCart mutation (open/close the cart, add/remove items to/from the cart) and check if the shouldSplitItem variable is being sent on the payload and if its value is corresponding to the one set in the store config.

Starters Deploy Preview

References

Issue: #2426

vercel[bot] commented 4 weeks ago

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

Name Status Preview Comments Updated (UTC)
faststore-site ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 13, 2024 8:06pm
codesandbox-ci[bot] commented 4 weeks ago

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.