use-cancelable

React Hook for creating a cancelable promise. Useful for avoiding state mutations after a component has unmounted

usetrashable

A custom hook to cancel unresolved promises when a component unmounts to prevent memory leaks