Skip to content

Commit 3443100

Browse files
ref(ui): Add comment to useNavigate (#70060)
1 parent 1e08e16 commit 3443100

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

static/app/utils/useNavigate.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@ type NavigateOptions = {
88
state?: any;
99
};
1010

11+
/**
12+
* Returns an imperative method for changing the location. Used by `<Link>`s, but
13+
* may also be used by other elements to change the location.
14+
*
15+
* @see https://reactrouter.com/hooks/use-navigate
16+
*/
1117
export function useNavigate() {
1218
const route = useRouteContext();
1319

0 commit comments

Comments
 (0)