Const
This is an alias for createPlugin.
createPlugin
Creates the Pinia plugin.
This is also exported as TauriPluginPinia.
TauriPluginPinia
import { createApp } from 'vue';import { createPinia } from 'pinia';import { createPlugin } from '@tauri-store/pinia';const app = createApp(App);const pinia = createPinia();pinia.use(createPlugin());app.use(pinia)app.mount('#app'); Copy
import { createApp } from 'vue';import { createPinia } from 'pinia';import { createPlugin } from '@tauri-store/pinia';const app = createApp(App);const pinia = createPinia();pinia.use(createPlugin());app.use(pinia)app.mount('#app');
This is an alias for
createPlugin
.