Refactor draft order sync flows#1384
Conversation
…actor-draft-order-sync-flows # Conflicts: # packages/react/src/components/checkout/payment/utils/use-confirm-checkout.ts # packages/react/src/components/checkout/shipping/shipping-method.tsx
Task: task-4
Task: task-1
Task: task-2
Task: task-10
Task: task-3
Task: task-12
…er backed rhf fields on sync
🦋 Changeset detectedLatest commit: 8d73ddf The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
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 |
|
[P1]
Relevant paths: |
Summary
Refactors the React checkout draft-order synchronization flow to make checkout state updates more reliable before payment confirmation.
This branch centralizes draft-order sync behavior, reduces duplicate order mutations, improves recovery/error handling when syncs fail, and ensures payment flows flush pending draft-order changes
before attempting checkout confirmation. It also expands checkout test coverage across validation, shipping, pickup, totals, tips, discounts, payment methods, redirects, hydration, tracking, and error
states.
Changeset
Added:
.changeset/quiet-checkouts-sync.md@godaddy/reactTest Plan
Ran TypeScript validation: