Documentation about using Vike with Pinia.

💚
This page is maintained by the community and may contain outdated information; PR welcome to update or improve it.

If you are using vike-vue you can use vike-vue-pinia for automatic integration.

The vike-vue-pinia extension requires vike-vue.

Manual integration

To manually integrate Pinia, see:

Examples of integrating Pinia without using vike-vue:

You can also have a look at the source code of vike-vue-pinia.

See also