diff --git a/framework/commerce/utils/use-action.tsx b/framework/commerce/utils/use-action.tsx deleted file mode 100644 index 24593383f..000000000 --- a/framework/commerce/utils/use-action.tsx +++ /dev/null @@ -1,15 +0,0 @@ -import { useCallback } from 'react' -import type { HookFetcher, HookFetcherOptions } from './types' -import { useCommerce } from '..' - -export default function useAction( - options: HookFetcherOptions, - fetcher: HookFetcher -) { - const { fetcherRef } = useCommerce() - - return useCallback( - (input: Input) => fetcher(options, input, fetcherRef.current), - [fetcher] - ) -}