mirror of
https://github.com/vercel/commerce.git
synced 2025-03-27 07:45:53 +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>
18 lines
340 B
TypeScript
18 lines
340 B
TypeScript
import { useCallback } from 'react'
|
|
|
|
type Options = {
|
|
includeProducts?: boolean
|
|
}
|
|
|
|
export function emptyHook(options?: Options) {
|
|
const useEmptyHook = async ({ id }: { id: string | number }) => {
|
|
return useCallback(async function () {
|
|
return Promise.resolve()
|
|
}, [])
|
|
}
|
|
|
|
return useEmptyHook
|
|
}
|
|
|
|
export default emptyHook
|