]> git.ipfire.org Git - thirdparty/vuejs/pinia.git/commit
feat(plugins): pass a context object to plugins instead of app
authorEduardo San Martin Morote <posva13@gmail.com>
Thu, 15 Apr 2021 14:43:14 +0000 (16:43 +0200)
committerEduardo San Martin Morote <posva13@gmail.com>
Thu, 15 Apr 2021 14:43:14 +0000 (16:43 +0200)
commitbcb4ec3422635dd57f655e58f72a9a7a1c7dba0d
treeb368cbaa6bf3d70d16dd858d49e585b46bf1b26d
parentb5c928da20efc532de84d8b8498d56f306a40e03
feat(plugins): pass a context object to plugins instead of app

BREAKING CHANGE: To improve the plugin api capabilities, `pinia.use()`
now receives a context object instead of just `app`:
```js
// replace
pinia.use((app) => {})
// with
pinia.use(({ app }) => {})
```
docs/core-concepts/plugins.md [deleted file]