We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 820e97e commit d6c3cf9Copy full SHA for d6c3cf9
packages/docs/core-concepts/plugins.md
@@ -371,12 +371,14 @@ function MyPiniaPlugin({ store }: PiniaPluginContext) {
371
console.log(`[🍍 ${mutation.storeId}]: ${mutation.type}.`)
372
})
373
374
+ // Note this has to be typed if you are using TS
375
return { creationTime: new Date() }
376
}
377
-const myPlugin: Plugin = ({ pinia }) {
378
- pinia.use(MyPiniaPlugin);
+const myPlugin: Plugin = ({ $pinia }) => {
379
+ $pinia.use(MyPiniaPlugin)
380
381
+
382
export default myPlugin
383
```
384
0 commit comments