HashHistory
A hash history stores the current location in the fragment identifier portion of the URL in a web browser environment.
This is ideal for apps that do not control the server for some reason (because the fragment identifier is never sent to the server), including some shared hosting environments that do not provide fine-grained controls over which pages are served at which URLs.
See also
https
://github.com/remix-run/history/tree/main/docs/api-reference.md#hashhistory
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