Skip to content

Commit d2bc583

Browse files
committed
remove unnecessary deep page outlines
1 parent aa80675 commit d2bc583

File tree

10 files changed

+14
-40
lines changed

10 files changed

+14
-40
lines changed

src/guide/built-ins/transition.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
---
2-
aside: deep
3-
---
4-
51
<script setup>
62
import Basic from './transition-demos/Basic.vue'
73
import SlideFade from './transition-demos/SlideFade.vue'

src/guide/components/events.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
---
2-
aside: deep
3-
---
4-
51
# Component Events
62

73
> This page assumes you've already read the [Components Basics](/guide/essentials/component-basics). Read that first if you are new to components.

src/guide/components/props.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
---
2-
aside: deep
3-
---
4-
51
# Props
62

73
> This page assumes you've already read the [Components Basics](/guide/essentials/component-basics). Read that first if you are new to components.

src/guide/components/provide-inject.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
---
2-
aside: deep
3-
---
4-
51
# Provide / Inject
62

73
> This page assumes you've already read the [Components Basics](/guide/essentials/component-basics). Read that first if you are new to components.
@@ -99,7 +95,7 @@ However, do note this does **not** make the injection reactive. We will discuss
9995

10096
</div>
10197

102-
### App-level Provide
98+
## App-level Provide
10399

104100
In addition to providing data in a component, we can also provide at the app level:
105101

src/guide/components/slots.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
---
2-
aside: deep
3-
---
4-
51
# Slots
62

73
> This page assumes you've already read the [Components Basics](/guide/essentials/component-basics). Read that first if you are new to components.

src/guide/essentials/class-and-style.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
---
2-
aside: deep
3-
---
4-
51
# Class and Style Bindings
62

73
A common need for data binding is manipulating an element's class list and its inline styles. Since they are both attributes, we can use `v-bind` to handle them: we only need to calculate a final string with our expressions. However, meddling with string concatenation is annoying and error-prone. For this reason, Vue provides special enhancements when `v-bind` is used with `class` and `style`. In addition to strings, the expressions can also evaluate to objects or arrays.

src/guide/essentials/event-handling.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
---
2-
aside: deep
3-
---
4-
51
# Event Handling
62

73
## Listening to Events

src/guide/reusability/composables.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
---
2-
aside: deep
3-
---
4-
51
# Composables
62

73
<script setup>

src/guide/scaling-up/ssr.md

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -265,14 +265,24 @@ However, in an SSR context, the application modules are typically initialized on
265265

266266
We can technically re-initialize all the JavaScript modules on each request, just like we do in browsers. However, initializing JavaScript modules can be costly, so this would significantly affect server performance.
267267

268-
The recommended solution is to create a new instance of the entire application - including the router and global stores - on each request:
268+
The recommended solution is to create a new instance of the entire application - including the router and global stores - on each request. The, instead of directly importing it in our components, we provide the shared state using [app-level provide](/guide/components/provide-inject.html#app-level-provide) and inject it in components that need it:
269269

270270
```js
271+
// app.js (shared between server and client)
272+
import { createSSRApp } from 'vue'
273+
import { createStore } from './store.js'
271274

275+
export function createApp() {
276+
const app = createSSRApp(/* ... */)
277+
// create new instance of store per request
278+
const store = createStore(/* ... */)
279+
// provide store at the app level
280+
app.provide('store', store)
281+
// also expose store for hydration purposes
282+
return { app, store }
283+
}
272284
```
273285

274-
create a fresh instance of the application and the shared object on each request. Then, instead of directly importing it in our components, we provide the shared state using [app-level provide](/guide/components/provide-inject.html#app-level-provide) and inject it in components that need it.
275-
276286
State Management libraries like Pinia are designed with this in mind. Consult [Pinia's SSR guide](https://pinia.vuejs.org/ssr/) for more details.
277287

278288
### Hydration Mismatch

src/guide/scaling-up/testing.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
---
2-
aside: deep
3-
---
4-
51
# Testing
62

73
## Overview

0 commit comments

Comments
 (0)