pinia.use(() => ({ hello: 'world' }))
```
-You can also set the property directly on the `store`:
+You can also set the property directly on the `store` but **if possible use the return version so they can be automatically tracked by devtools**:
```js
pinia.use(({ store }) => {
})
```
+Any property _returned_ by a plugin will be automatically tracked by devtools so in order to make `hasError` visible in devtools, make sure to add it to `store._customProperties` **in dev mode only** if you want to debug it in devtools:
+
+```js
+// from the example above
+pinia.use(({ store }) => {
+ store.$state.secret = globalSecret
+ store.secret = globalSecret
+ store._customProperties.add('secret')
+})
+```
+
:::warning
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`: