Aborting navigations

Aborting navigations can be done with the useAbort hook.

function Route() {
	let abort = useAbort();
	let [Form, busy, loading, navigations] = useForm();

	function handleAbortButtonClick() {
		abort(navigations); // aborts all navigations from the Form
	}

	return (
		<>
			<Form method="post">...</Form>
			<button onClick={handleAbortButtonClick}>Abort</button>
		</>
	);
}