You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: examples/vue-pinia/README.md
+6-2Lines changed: 6 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,9 +1,13 @@
1
1
Example of using [Pinia](https://pinia.vuejs.org) with the `vike-vue-pinia` extension.
2
2
3
3
This example demonstrates:
4
-
- Basic Pinia store usage with SSR
5
-
- Client-side state persistence using `pinia-plugin-persistedstate` (counter state persists across page reloads)
4
+
- Basic Pinia store usage with SSR (Home page: counters synced between components)
5
+
- Client-side state persistence using `pinia-plugin-persistedstate` (About page: counter persists across page reloads)
6
6
- Using `onCreatePinia` hook to register Pinia plugins
7
+
- Todo list with SSR data fetching and store population
8
+
9
+
> [!NOTE]
10
+
> The home page uses a **non-persisted** store to demonstrate SSR without hydration issues. The about page uses a **persisted** store to demonstrate localStorage persistence.
7
11
8
12
> [!NOTE]
9
13
> For more examples, see [Bati](https://batijs.dev) which generates `vike-vue` apps.
0 commit comments