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
Because of this, if you are using `nav :last-child` you will need to use `nav :last-of-type` so the styles don't conditionally fall off your last link (and any other similar selectors).
86
+
Because of this, if you are using `nav :last-child` you will need to use
87
+
`nav :last-of-type` so the styles don't conditionally fall off your last link
88
+
(and any other similar selectors).
68
89
69
90
### preventScrollReset
70
91
71
92
[modes: framework, data]
72
93
73
-
Prevents the scroll position from being reset to the top of the window when the link is clicked and the app is using [ScrollRestoration](../components/ScrollRestoration). This only prevents new locations reseting scroll to the top, scroll position will be restored for back/forward button navigation.
94
+
Prevents the scroll position from being reset to the top of the window when
95
+
the link is clicked and the app is using [`ScrollRestoration`](../components/ScrollRestoration). This only
96
+
prevents new locations reseting scroll to the top, scroll position will be
97
+
restored for back/forward button navigation.
74
98
75
99
```tsx
76
100
<Linkto="?tab=one"preventScrollReset />
@@ -88,18 +112,24 @@ Defines the relative path behavior for the link.
88
112
<Linkrelative="path" />
89
113
```
90
114
91
-
Consider a route hierarchy where a parent route pattern is "blog" and a child route pattern is "blog/:slug/edit".
115
+
Consider a route hierarchy where a parent route pattern is "blog" and a child
116
+
route pattern is "blog/:slug/edit".
92
117
93
-
-**route** - default, resolves the link relative to the route pattern. In the example above a relative link of `".."` will remove both `:slug/edit` segments back to "/blog".
94
-
-**path** - relative to the path so `..` will only remove one URL segment up to "/blog/:slug"
118
+
-**route** - default, resolves the link relative to the route pattern. In the
119
+
example above a relative link of `".."` will remove both `:slug/edit` segments
120
+
back to "/blog".
121
+
-**path** - relative to the path so `..` will only remove one URL segment up
122
+
to "/blog/:slug"
95
123
96
-
Note that index routes and layout routes have no paths so they are not included in the relative path calculation.
124
+
Note that index routes and layout routes do not have paths so they are not
125
+
included in the relative path calculation.
97
126
98
127
### reloadDocument
99
128
100
129
[modes: framework, data, declarative]
101
130
102
-
Will use document navigation instead of client side routing when the link is clicked: the browser will handle the transition normally (as if it were an `<a href>`).
131
+
Will use document navigation instead of client side routing when the link is
132
+
clicked: the browser will handle the transition normally (as if it were an `<a href>`).
103
133
104
134
```tsx
105
135
<Linkto="/logout"reloadDocument />
@@ -109,7 +139,8 @@ Will use document navigation instead of client side routing when the link is cli
109
139
110
140
[modes: framework, data, declarative]
111
141
112
-
Replaces the current entry in the history stack instead of pushing a new one onto it.
142
+
Replaces the current entry in the history stack instead of pushing a new one
143
+
onto it.
113
144
114
145
```tsx
115
146
<Linkreplace />
@@ -145,13 +176,14 @@ function SomeComp() {
145
176
}
146
177
```
147
178
148
-
This state is inaccessible on the server as it is implemented on top of [`history.state`](https://developer.mozilla.org/en-US/docs/Web/API/History/state)
179
+
This state is inaccessible on the server as it is implemented on top of
0 commit comments