feat(react-centra-checkout): dispatch events to CentraEvents from handlers - #800
Open
adamsoderstrom wants to merge 1 commit into
Open
feat(react-centra-checkout): dispatch events to CentraEvents from handlers#800adamsoderstrom wants to merge 1 commit into
CentraEvents from handlers#800adamsoderstrom wants to merge 1 commit into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
🦋 Changeset detectedLatest commit: afaf314 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
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 |
adamsoderstrom
force-pushed
the
feature/dispatch-events-from-handlers-to-centra-events
branch
from
July 1, 2026 08:54
413c3a9 to
ceaf862
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. @@ Coverage Diff @@
## main #800 +/- ##
==========================================
+ Coverage 70.62% 75.00% +4.37%
==========================================
Files 67 67
Lines 1062 1124 +62
Branches 268 267 -1
==========================================
+ Hits 750 843 +93
+ Misses 248 216 -32
- Partials 64 65 +1
🚀 New features to boost your workflow:
|
adamsoderstrom
force-pushed
the
feature/dispatch-events-from-handlers-to-centra-events
branch
from
July 1, 2026 09:20
ceaf862 to
afaf314
Compare
majho
approved these changes
Jul 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add typed event tracking for
react-centra-checkouthandlers and hooks.This PR expands
CentraEventsto support handler- and hook-specific events with typed callback signatures, dispatches events from checkout context methods and hook responses, and re-exports the event types publicly. It also adds tests covering event subscription, argument forwarding, andaddItemdispatch behavior for both successful and error responses.Upside: apps can now track calls to these handlers in a consistent, type-safe way.