Skip to content

Latest commit

 

History

History
23 lines (15 loc) · 637 Bytes

File metadata and controls

23 lines (15 loc) · 637 Bytes
title useResolvedPath

useResolvedPath

Type declaration
declare function useResolvedPath(to: To): Path;

This hook resolves the pathname of the location in the given to value against the pathname of the current location.

This is useful when building links from relative values. For example, check out the source to <NavLink> which calls useResolvedPath internally to resolve the full pathname of the page being linked to.

See resolvePath for more information.