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
As a developer, I want the ability to use the Cart context throughout the CommerceApp so that other external components can react to state changes of the MiniCart.
Description & Motivation
Currently, the MiniCart context [../components/Minicart/cartContext.js - line 133] is not exported for later use within the CommerceApp. The motivation behind this fix stems from a desire to add new components in the header for a business client that will require the current state of the Cart -- ie isOpen or other stored state values.
Deliverables
Code changes:
Within 'Minicart/index.js' export useCartState from './cartContext';
Within the main 'index.js' file, export useCartState from './components/Minicart';
Acceptance Criteria
A developer should be able to import { useCartState } from '@adobe/aem-core-cif-react-components' with no errors.
Verification Steps
Try importing useCartState and using it within a child component of the .
The text was updated successfully, but these errors were encountered:
User Story
As a developer, I want the ability to use the Cart context throughout the CommerceApp so that other external components can react to state changes of the MiniCart.
Description & Motivation
Currently, the MiniCart context [../components/Minicart/cartContext.js - line 133] is not exported for later use within the CommerceApp. The motivation behind this fix stems from a desire to add new components in the header for a business client that will require the current state of the Cart -- ie isOpen or other stored state values.
Deliverables
Code changes:
Acceptance Criteria
A developer should be able to import { useCartState } from '@adobe/aem-core-cif-react-components' with no errors.
Verification Steps
Try importing useCartState and using it within a child component of the .
The text was updated successfully, but these errors were encountered: