π― Overview
PricesContainer currently uses the old reducer-based pattern for fetching and managing prices. The usePrices hook (from @commercelayer/hooks) already exists and provides a cleaner, SWR-based approach β consistent with how SkusContainer, SkuListsContainer, and AvailabilityContainer were migrated in #750.
π Goals
β
Acceptance Criteria
π― Overview
PricesContainercurrently uses the old reducer-based pattern for fetching and managing prices. TheusePriceshook (from@commercelayer/hooks) already exists and provides a cleaner, SWR-based approach β consistent with howSkusContainer,SkuListsContainer, andAvailabilityContainerwere migrated in #750.π Goals
PricesContainerwith theusePriceshookPriceReducerif it becomes redundant after the migrationinterceptorsfromCommerceLayerContexttousePrices(consistent with feat(#748): add interceptors prop to SDK hooks and CommerceLayer componentΒ #750)β Acceptance Criteria
PricesContainerusesusePriceshook internallyPriceReducerremoved or simplified if no longer neededinterceptorsforwarded from context to the hook