useAbort
A hook to abort navigations.
import { useAbort } from 'react-sprout';
let abort = useAbort();
- Name
abort
- Type
- function
- Description
A function to abort navigations.
abort
abort(); // abort all navigations
abort(navigation); // abort a single navigation
abort(navigations); // abort an array of navigations