mirror of
https://github.com/vercel/commerce.git
synced 2025-07-22 20:26:49 +00:00
enable add and remove items (update) from cart. Update Search
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
import useCart, { UseCart } from '@commerce/cart/use-cart'
|
||||
import { Customer } from '@commerce/types'
|
||||
import { Cart } from '@commerce/types'
|
||||
import { SWRHook } from '@commerce/utils/types'
|
||||
import { normalizeCart } from '../utils/normalize'
|
||||
// import { getCustomerQuery, getCustomerToken } from '../utils'
|
||||
|
||||
export default useCart as UseCart<typeof handler>
|
||||
|
||||
export const handler: SWRHook<Customer | null> = {
|
||||
export const handler: SWRHook<Cart | null> = {
|
||||
fetchOptions: {
|
||||
query: 'cart',
|
||||
method: 'get',
|
||||
|
Reference in New Issue
Block a user