mirror of
https://github.com/vercel/commerce.git
synced 2025-07-05 04:31:22 +00:00
* folder and env setup * codegen.json headers removed Co-authored-by: Chandradeepta <43542673+Chandradeepta@users.noreply.github.com>
14 lines
256 B
TypeScript
14 lines
256 B
TypeScript
import { useCallback } from 'react'
|
|
|
|
export function emptyHook() {
|
|
const useEmptyHook = async (options = {}) => {
|
|
return useCallback(async function () {
|
|
return Promise.resolve()
|
|
}, [])
|
|
}
|
|
|
|
return useEmptyHook
|
|
}
|
|
|
|
export default emptyHook
|