From e77056cb22ab897f05dc7ec7232142c336fbc7c6 Mon Sep 17 00:00:00 2001 From: Eduardo San Martin Morote Date: Mon, 17 May 2021 19:16:43 +0200 Subject: [PATCH] docs: syntax error fix --- docs/core-concepts/plugins.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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 } }) ``` -- 2.47.2