]> git.ipfire.org Git - thirdparty/vuejs/pinia.git/commitdiff
chore: warn against pinia.use
authorEduardo San Martin Morote <posva13@gmail.com>
Mon, 8 Mar 2021 13:01:11 +0000 (14:01 +0100)
committerEduardo San Martin Morote <posva13@gmail.com>
Mon, 8 Mar 2021 13:01:11 +0000 (14:01 +0100)
src/rootStore.ts

index 1cc261d680c7731a2b0fae9351ac93d6ee8463d8..a217044afb790c35b999240a9f428d80e27e3dcd 100644 (file)
@@ -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 {