Skip to content

Commit

Permalink
Update ko (#74)
Browse files Browse the repository at this point in the history
* docs: fix banner offset

* docs: extra note

* docs: fix minor typo in nuxt.md (vuejs#2548)
  • Loading branch information
niceplugin authored Jan 15, 2024
1 parent 92871bf commit 92491aa
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/.vitepress/theme/components/VueMasteryBanner.vue
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ onMounted(() => {

<style>
html.vuemastery-menu-fixed {
--vt-banner-height: 70px;
--vp-layout-top-height: 70px;
}
html.vuemastery-menu-fixed .VPNav,
html.vuemastery-menu-fixed .VPSidebar {
Expand Down
6 changes: 5 additions & 1 deletion docs/cookbook/composables.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ import { defineStore, skipHydrate } from 'pinia'
import { useMediaControls } from '@vueuse/core'

export const useVideoPlayer = defineStore('video', () => {
// 이 μš”μ†Œλ₯Ό 직접 λ…ΈμΆœν•˜μ§€ μ•ŠμŠ΅λ‹ˆλ‹€
// 이 μš”μ†Œλ₯Ό 직접 λ…ΈμΆœ(λ°˜ν™˜)ν•˜μ§€ μ•ŠμŠ΅λ‹ˆλ‹€
const videoElement = ref<HTMLVideoElement>()
const src = ref('/data/video.mp4')
const { playing, volume, currentTime, togglePictureInPicture } =
Expand All @@ -57,6 +57,10 @@ export const useVideoPlayer = defineStore('video', () => {
})
```

:::warning
`ref<HTMLVideoElement>()`은 일반 μƒνƒœμ™€ 달리 DOM μš”μ†Œμ— λŒ€ν•œ 직렬화할 수 μ—†λŠ” μ°Έμ‘°λ₯Ό ν¬ν•¨ν•©λ‹ˆλ‹€. 이것이 μš°λ¦¬κ°€ 직접 λ°˜ν™˜ν•˜μ§€ μ•ŠλŠ” μ΄μœ μž…λ‹ˆλ‹€. ν΄λΌμ΄μ–ΈνŠΈ μ „μš© μƒνƒœμ΄λ―€λ‘œ μ„œλ²„μ—μ„œ μ„€μ •λ˜μ§€ μ•ŠμœΌλ©° ν΄λΌμ΄μ–ΈνŠΈμ—μ„œ **항상** `undefined`둜 μ‹œμž‘ν•  κ²ƒμž„μ„ μ•Œκ³  μžˆμŠ΅λ‹ˆλ‹€.
:::

## SSR

[Server Side Rendering](../ssr/index.md)을 λ‹€λ£° λ•ŒλŠ” μŠ€ν† μ–΄ λ‚΄μ—μ„œ Composable을 μ‚¬μš©ν•˜κΈ° μœ„ν•΄ λͺ‡ 가지 μΆ”κ°€ 단계λ₯Ό κ³ λ €ν•΄μ•Ό ν•©λ‹ˆλ‹€.
Expand Down
2 changes: 1 addition & 1 deletion docs/ssr/nuxt.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export default defineNuxtConfig({

## νŽ˜μ΄μ§€μ—μ„œ μž‘μ—… λŒ€κΈ° %{#awaiting-for-actions-in-pages}%

`onServerPrefetch()`와 λ§ˆμ°¬κ°€μ§€λ‘œ, `asyncData()` λ‚΄μ—μ„œ μŠ€ν† μ–΄ μ•‘μ…˜μ„ ν˜ΈμΆœν•  수 μžˆμŠ΅λ‹ˆλ‹€. `useASyncData()`의 μž‘λ™ 방식을 κ³ λ €ν•  λ•Œ, **λ°˜λ“œμ‹œ 값을 λ°˜ν™˜ν•΄μ•Ό ν•©λ‹ˆλ‹€**. μ΄λ ‡κ²Œ ν•˜λ©΄ Nuxtκ°€ ν΄λΌμ΄μ–ΈνŠΈ μΈ‘μ—μ„œ μ•‘μ…˜μ„ μ‹€ν–‰ν•˜μ§€ μ•Šκ³  μ„œλ²„μ—μ„œμ˜ 값을 μž¬μ‚¬μš©ν•  수 μžˆμŠ΅λ‹ˆλ‹€.
`onServerPrefetch()`와 λ§ˆμ°¬κ°€μ§€λ‘œ, `asyncData()` λ‚΄μ—μ„œ μŠ€ν† μ–΄ μ•‘μ…˜μ„ ν˜ΈμΆœν•  수 μžˆμŠ΅λ‹ˆλ‹€. `useAsyncData()`의 μž‘λ™ 방식을 κ³ λ €ν•  λ•Œ, **λ°˜λ“œμ‹œ 값을 λ°˜ν™˜ν•΄μ•Ό ν•©λ‹ˆλ‹€**. μ΄λ ‡κ²Œ ν•˜λ©΄ Nuxtκ°€ ν΄λΌμ΄μ–ΈνŠΈ μΈ‘μ—μ„œ μ•‘μ…˜μ„ μ‹€ν–‰ν•˜μ§€ μ•Šκ³  μ„œλ²„μ—μ„œμ˜ 값을 μž¬μ‚¬μš©ν•  수 μžˆμŠ΅λ‹ˆλ‹€.

```vue{3-4}
<script setup>
Expand Down

0 comments on commit 92491aa

Please sign in to comment.