From: Eduardo San Martin Morote Date: Mon, 17 May 2021 17:16:43 +0000 (+0200) Subject: docs: syntax error fix X-Git-Tag: v2.0.0-alpha.19~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e77056cb22ab897f05dc7ec7232142c336fbc7c6;p=thirdparty%2Fvuejs%2Fpinia.git docs: syntax error fix --- diff --git a/docs/core-concepts/plugins.md b/docs/core-concepts/plugins.md index f180d887..9a0676cf 100644 --- a/docs/core-concepts/plugins.md +++ b/docs/core-concepts/plugins.md @@ -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 } }) ```