mirror of
https://github.com/vercel/commerce.git
synced 2025-07-23 04:36:49 +00:00
Progress with LocalProvider
This commit is contained in:
15
framework/local/cart/use-update-item.tsx
Normal file
15
framework/local/cart/use-update-item.tsx
Normal file
@@ -0,0 +1,15 @@
|
||||
import { useCallback } from 'react'
|
||||
|
||||
export function emptyHook() {
|
||||
const useEmptyHook = async (options = {}) => {
|
||||
return useCallback(async function () {
|
||||
return Promise.resolve()
|
||||
}, [])
|
||||
}
|
||||
|
||||
return useEmptyHook
|
||||
}
|
||||
|
||||
export const handler = {}
|
||||
|
||||
export default emptyHook
|
Reference in New Issue
Block a user