UNPKG

remix-utils

Version:

This package contains simple utility functions to use with [React Router](https://reactrouter.com/).

12 lines (11 loc) 506 B
import type { SubmitFunction, SubmitOptions } from "react-router"; type SubmitTarget = Parameters<SubmitFunction>["0"]; /** * @deprecated Debounce at the route level instead of the component level. * @see https://sergiodxa.com/tutorials/debounce-loaders-and-actions-in-react-router */ export declare function useDebounceSubmit(): (target: SubmitTarget, options?: SubmitOptions & { /** Submissions within this timeout will be canceled */ debounceTimeout?: number; }) => Promise<void>; export {};