Skip to content

Latest commit

 

History

History
26 lines (14 loc) · 619 Bytes

useAbortController.md

File metadata and controls

26 lines (14 loc) · 619 Bytes

realueDocs


realue / useAbortController

Function: useAbortController()

useAbortController(): () => AbortController

Returns a function that creates an AbortController and aborts the previous one (if any). The last created AbortController is aborted when the component unmounts.

Returns

Function

Callback that returns a new AbortController.

Returns

AbortController

Defined in

lib/hooks/useAbortController.ts:14