API Documentation / pinia / Pinia

Interface: Pinia

pinia.Pinia

Every application must own its own pinia to be able to create stores

Hierarchy

Properties

state

state: Ref<Record<string, StateTree>>

root state

Defined in

pinia/src/rootStore.ts:51

Methods

install

install(app): void

Parameters

NameType
appApp<any>

Returns

void

Defined in

pinia/src/rootStore.ts:46


use

use(plugin): Pinia

Adds a store plugin to extend every store

Parameters

NameTypeDescription
pluginPiniaPluginstore plugin to add

Returns

Pinia

Defined in

pinia/src/rootStore.ts:58