You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: versioned_docs/version-7.x/use-link-builder.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -4,14 +4,14 @@ title: useLinkBuilder
4
4
sidebar_label: useLinkBuilder
5
5
---
6
6
7
-
The `useLinkBuilder` hook returns helpers to build `href` or action based on the linking options. It returns an object with the following properties:
7
+
The `useLinkBuilder` hook returns helpers to build `href` or action based on the [`linking` configuration](configuring-links.md). It returns an object with the following properties:
8
8
9
9
-[`buildHref`](#buildhref)
10
10
-[`buildAction`](#buildaction)
11
11
12
12
## `buildHref`
13
13
14
-
The `buildHref` method lets us build a path to use for links for a screen in the current navigator's state. It returns a function that takes `name` and `params` for the screen to focus and returns path based on the [`linking`options](navigation-container.md#linking).
14
+
The `buildHref` method lets us build a path to use for links for a screen in the current navigator's state. It returns a function that takes `name` and `params` for the screen to focus and returns path based on the [`linking`configuration](configuring-links.md).
The `useRoutePath` hook can be used to get the path of a route based on the [`linking` configuration](configuring-links.md). This can be useful if you need to generate a URL for a specific route in your app to share as a deep link.
0 commit comments