Skip to content

Commit

Permalink
Update shared-state.md
Browse files Browse the repository at this point in the history
improve code block for pinia and fix the naming
  • Loading branch information
whitespacecode authored Nov 12, 2024
1 parent 05602e6 commit 797fae2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/cookbook/shared-state.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,12 +108,12 @@ onMounted(() => {

## Using Pinia Store

By using the same logic we can also use pinia.
By using the same logic we can also use Pinia.
By using pinia we also have full access to actions and getters.

::: code-group

``` [model.ts]
```ts [model.ts]
import { defineStore } from "pinia";

export const useModelStore = defineStore('model', {
Expand Down

0 comments on commit 797fae2

Please sign in to comment.