Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

Navigator

A Navigator is a "location changer"; it's how you get to different locations.

Every history instance conforms to the Navigator interface, but the distinction is useful primarily when it comes to the low-level API where both the location and a navigator must be provided separately in order to avoid "tearing" that may occur in a suspense-enabled app if the action and/or location were to be read directly from the history instance.

interface Navigator {
createHref: History["createHref"];
encodeLocation?: History["encodeLocation"];
go: History["go"];
push(
to: To,
state?: any,
): void;
replace(
to: To,
state?: any,
): void;
}

§Properties

§
createHref: History["createHref"]
[src]
§
encodeLocation?: History["encodeLocation"]
[src]
§
go: History["go"]
[src]

§Methods

§
push(
to: To,
state?: any,
): void
[src]
§
replace(
to: To,
state?: any,
): void
[src]