solid-awesome-hooks
Version:
A collection of awesome hooks for solid-js
13 lines (12 loc) • 369 B
TypeScript
import { type Owner } from "solid-js";
type Options = {
reason?: any;
fallbackOwner?: Owner | null;
};
/**
* Returns AbortController instance
* Can be useful inside createResource
* If there's no owner scope abort() won't be called
*/
export declare const useAbortController: ({ reason, fallbackOwner }?: Options) => AbortController;
export {};