History
A history is an interface to the navigation stack. The history serves as the source of truth for the current location, as well as provides a set of methods that may be used to change it.
It is similar to the DOM's window.history
object, but with a smaller, more focused API.
Inheritors
Functions
Link copied to clipboard
Returns a valid href for the given to
value that may be used as the value of an attribute.
Link copied to clipboard
Encode a location the same way window.history would do (no-op for memory history) so we ensure our PUSH/REPLACE navigations for data routers behave the same as POP