mirror of
https://github.com/vercel/commerce.git
synced 2025-04-29 06:17:50 +00:00
* new SFCC provider * add search * normalization + search * categories as search results * adress PR feedback * Update README.md * get all paths for SSG * product variants and options * Apply suggestions from code review Co-authored-by: Luis Alvarez D. <luis@vercel.com> * remove console log * prettier * clean console log * ran prettier * Updated readme * remove static data and revert config changes * set default site Co-authored-by: Luis Alvarez D. <luis@vercel.com>
21 lines
447 B
TypeScript
21 lines
447 B
TypeScript
import { MutationHook } from '@vercel/commerce/utils/types'
|
|
import useUpdateItem, {
|
|
UseUpdateItem,
|
|
} from '@vercel/commerce/cart/use-update-item'
|
|
|
|
export default useUpdateItem as UseUpdateItem<any>
|
|
|
|
export const handler: MutationHook<any> = {
|
|
fetchOptions: {
|
|
query: '',
|
|
},
|
|
async fetcher({ input, options, fetch }) {},
|
|
useHook:
|
|
({ fetch }) =>
|
|
() => {
|
|
return async function addItem() {
|
|
return {}
|
|
}
|
|
},
|
|
}
|