})
```
-:::warning
-Extracting `actions` using `storeToRefs` will result in `actions` being `undefined`. To extract `actions` from the store, you should skip using `storeToRefs`
+Extracting `actions` using `storeToRefs` will result in `actions` being `undefined`. To extract `actions` from the store, you should skip using `storeToRefs`:
```js
import { storeToRefs } from 'pinia'
increment() // "undefined"
- // if you want to only destructure `actions`
+ // ✅ if you want to only destructure `actions`
// from the store then don't use `storeToRefs`
const { increment } = store
counter // 2
})
```
-:::
-
-:::tip
-- **To extract only the properties from the store:**
- - `const { counter } = counterStore`
-
-<br/>
-
-- **To extract only the actions from the store:**
- - `const { increment, decrement } = counterStore`
-:::