Skip to content

Commit 1128a40

Browse files
authored
docs: add omitted anchors for 3.5 (#3020)
1 parent 27dd985 commit 1128a40

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/guide/components/async.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ In Vue 3.5+, async components can control when they are hydrated by providing a
118118

119119
- The design is intentionally low-level for flexibility. Compiler syntax sugar can potentially be built on top of this in the future either in core or in higher level solutions (e.g. Nuxt).
120120

121-
### Hydrate on Idle
121+
### Hydrate on Idle {#hydrate-on-idle}
122122

123123
Hydrates via `requestIdleCallback`:
124124

@@ -131,7 +131,7 @@ const AsyncComp = defineAsyncComponent({
131131
})
132132
```
133133

134-
### Hydrate on Visible
134+
### Hydrate on Visible {#hydrate-on-visible}
135135

136136
Hydrate when element(s) become visible via `IntersectionObserver`.
137137

@@ -150,7 +150,7 @@ Can optionally pass in an options object value for the observer:
150150
hydrateOnVisible({ rootMargin: '100px' })
151151
```
152152

153-
### Hydrate on Media Query
153+
### Hydrate on Media Query {#hydrate-on-media-query}
154154

155155
Hydrates when the specified media query matches.
156156

@@ -163,7 +163,7 @@ const AsyncComp = defineAsyncComponent({
163163
})
164164
```
165165

166-
### Hydrate on Interaction
166+
### Hydrate on Interaction {#hydrate-on-interaction}
167167

168168
Hydrates when specified event(s) are triggered on the component element(s). The event that triggered the hydration will also be replayed once hydration is complete.
169169

@@ -182,7 +182,7 @@ Can also be a list of multiple event types:
182182
hydrateOnInteraction(['wheel', 'mouseover'])
183183
```
184184

185-
### Custom Strategy
185+
### Custom Strategy {#custom-strategy}
186186

187187
```ts
188188
import { defineAsyncComponent, type HydrationStrategy } from 'vue'

src/guide/components/props.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ const { foo = 'hello' } = defineProps<{ foo?: string }>()
154154

155155
If you prefer to have more visual distinction between destructured props and normal variables in your IDE, Vue's VSCode extension provides a setting to enable inlay-hints for destructured props.
156156

157-
### Passing Destructured Props into Functions
157+
### Passing Destructured Props into Functions {#passing-destructured-props-into-functions}
158158

159159
When we pass a destructured prop into a function, e.g.:
160160

0 commit comments

Comments
 (0)