From 7c9d44ed3fc396e7ba41f0534a652ed34bd9e0f9 Mon Sep 17 00:00:00 2001 From: Eduardo San Martin Morote Date: Mon, 8 Mar 2021 14:01:11 +0100 Subject: [PATCH] chore: warn against pinia.use --- src/rootStore.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/rootStore.ts b/src/rootStore.ts index 1cc261d6..a217044a 100644 --- a/src/rootStore.ts +++ b/src/rootStore.ts @@ -132,6 +132,11 @@ export function createPinia(): Pinia { }, use(plugin) { + if (__DEV__) { + console.warn( + `[🍍]: The plugin API has plans to change to bring better extensibility. "pinia.use()" signature will change in the next release. It is recommended to avoid using this API.` + ) + } if (!localApp) { toBeInstalled.push(plugin) } else { -- 2.47.3