]> git.ipfire.org Git - thirdparty/vuejs/pinia.git/commitdiff
docs: const name in the useMedia example (#2024)
authorjoão melo <j@melo.plus>
Fri, 24 Feb 2023 15:40:30 +0000 (12:40 -0300)
committerGitHub <noreply@github.com>
Fri, 24 Feb 2023 15:40:30 +0000 (16:40 +0100)
packages/docs/cookbook/composables.md

index 864f790cc62160dec829e27bf160dc3c5981841e..2a9649ae9a02798e0c22f7e0be32e8c710c76ca4 100644 (file)
@@ -38,7 +38,7 @@ export const useVideoPlayer = defineStore('video', () => {
   const videoElement = ref<HTMLVideoElement>()
   const src = ref('/data/video.mp4')
   const { playing, volume, currentTime, togglePictureInPicture } =
-    useMediaControls(video, { src })
+    useMediaControls(videoElement, { src })
 
   function loadVideo(element: HTMLVideoElement, src: string) {
     videoElement.value = element