mirror of
https://github.com/vercel/commerce.git
synced 2025-07-22 20:26:49 +00:00
Progress with LocalProvider
This commit is contained in:
15
framework/local/product/use-search.tsx
Normal file
15
framework/local/product/use-search.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