class / @typed/navigation

CancelNavigation

Signals that a pre-navigation handler rejects the pending transition.

Package version
1.0.0-beta.13
Category
Transition control
Since
1.0.0

Import

import { CancelNavigation } from "@typed/navigation";

Signatures

export declare class CancelNavigation extends CancelNavigation_base {
}

Why

Cancellation is expected navigation control flow, not an untyped exception: the core clears the transition and returns the current committed destination unchanged.

Ownership and lifetime

Constructing the error acquires no resources. The active navigation Effect consumes it before releasing its transition state.

Other public imports

These import paths expose the same declaration. Each page retains its own public name and signature.

Source