]> git.ipfire.org Git - thirdparty/vuejs/pinia.git/commitdiff
docs(ssr): fix skipHydrate references undefined ref (#1689)
authorRare Kang <7322570+serialine@users.noreply.github.com>
Mon, 26 Sep 2022 19:08:28 +0000 (04:08 +0900)
committerGitHub <noreply@github.com>
Mon, 26 Sep 2022 19:08:28 +0000 (21:08 +0200)
packages/docs/cookbook/composables.md

index bca392dfa23ef2baef0664847a2706997aee9724..864f790cc62160dec829e27bf160dc3c5981841e 100644 (file)
@@ -91,7 +91,7 @@ export const useColorStore = defineStore('colors', () => {
   const lastColor = useLocalStorage('lastColor', sRGBHex)
   // ...
   return {
-    lastColor: skipHydrate(pickedColor), // Ref<string>
+    lastColor: skipHydrate(lastColor), // Ref<string>
     open, // Function
     isSupported, // boolean (not even reactive)
   }