commerce-toolkit
commerce-toolkit copied to clipboard
Add a logging API to the storefrontHooks to manage events
Uses a logging prop that exposes callbacks to hang from events throughout the storefronts.
The callbacks structure is the following:
-
onError: function ( type: 'addLineItemError' | 'createCartError' | 'removeLineItemError' | 'updateLineItemError', error: Error ) -
onSuccess: function ( type: 'addLineItemSuccess' | 'createCartSuccess' | 'removeLineItemSuccess' | 'updateLineItemSuccess', data: Cart )
The latest updates on your projects. Learn more about Vercel for Git ↗︎
🦋 Changeset detected
Latest commit: 7dce7941204763d933c3b31511c65838624e4cfe
The changes in this PR will be included in the next version bump.
This PR includes changesets to release 1 package
| Name | Type |
|---|---|
| @bsmnt/storefront-hooks | Minor |
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