mirror of
https://github.com/vercel/commerce.git
synced 2025-03-31 01:05:53 +00:00
* Add ordercloud provider * Fix provider errors * Make submit checkout optional * Make submit checkout optional * Remove nullables when creating endpoint type * Update readme * Log checkout error * Log error * Save token to cookie * Update fetch rest * Use token at checkout Co-authored-by: Luis Alvarez <luis@vercel.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
|