Skip to content

Commit

Permalink
[commerce-sdk-react] Implement remaining Shopper Baskets cache logic (#…
Browse files Browse the repository at this point in the history
…1070)

* Refactor Shopper Basket cache following new pattern

* Fix types

* Update packages/commerce-sdk-react/src/hooks/ShopperBaskets/cache.ts

Co-authored-by: Will Harney <[email protected]>

* PR Feedback

* Clean up unused utils and types after refactor

* Add missing response basketId to queryKey

* Implement cache for the remaining mutations

* Tests WIP

* PR Feedback & Use query key path in `deleteBasket` cache

* Add tests for mutations returning void response

* PR Feedback

* Remove unused `and` hooks util

* Revert "Remove unused `and` hooks util"

This reverts commit c0a364a.

---------

Co-authored-by: Will Harney <[email protected]>
  • Loading branch information
adamraya and wjhsf authored Mar 22, 2023
1 parent 1acbf8f commit b11a91a
Show file tree
Hide file tree
Showing 6 changed files with 415 additions and 263 deletions.
Loading

0 comments on commit b11a91a

Please sign in to comment.