Skip to content

Commit d72b964

Browse files
docs: clarify plugins don't update devtools timeline (#1002)
Co-authored-by: Eduardo San Martin Morote <[email protected]>
1 parent 30e48b6 commit d72b964

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/docs/core-concepts/plugins.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,8 @@ pinia.use(({ store }) => {
131131
})
132132
```
133133

134+
Note that state changes or additions that occur within a plugin (that includes calling `store.$patch()`) happen before the store is active and therefore **do not trigger any subscriptions**.
135+
134136
:::warning
135137
If you are using **Vue 2**, Pinia is subject to the [same reactivity caveats](https://vuejs.org/v2/guide/reactivity.html#Change-Detection-Caveats) as Vue. You will need to use `set` from `@vue/composition-api` when creating new state properties like `secret` and `hasError`:
136138

0 commit comments

Comments
 (0)