]> git.ipfire.org Git - thirdparty/vuejs/pinia.git/commitdiff
docs: syntax error fix
authorEduardo San Martin Morote <posva13@gmail.com>
Mon, 17 May 2021 17:16:43 +0000 (19:16 +0200)
committerEduardo San Martin Morote <posva13@gmail.com>
Mon, 17 May 2021 17:16:43 +0000 (19:16 +0200)
docs/core-concepts/plugins.md

index f180d887a10131bf0c5a6bf31ed5202f1a03e473..9a0676cff8cc5c44bb8e9109f0580c9d2df3585e 100644 (file)
@@ -150,12 +150,12 @@ Because of the limitation mentioned above about plugins being invoked **every ti
 
 ```ts
 let isRegistered
-pinia.use({ store }) => {
+pinia.use(({ store }) => {
   if (!isRegistered) {
-  store.$subscribe(() => {
-    // react to store changes
-  })
-  isRegistered = true
+    store.$subscribe(() => {
+      // react to store changes
+    })
+    isRegistered = true
   }
 })
 ```