Skip to content

✨ feat(PricesContainer): implement usePrices hook and replace reducer if needed #751

@acasazza

Description

@acasazza

🎯 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

  • PricesContainer uses usePrices hook internally
  • PriceReducer removed or simplified if no longer needed
  • interceptors forwarded from context to the hook
  • Existing tests pass; new tests added if needed
  • 100% coverage maintained for affected files

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions