API Documentation / pinia / Pinia
Interface: Pinia
pinia.Pinia
Every application must own its own pinia to be able to create stores
Hierarchy
Pinia
Properties
state
• state: Ref
<Record
<string
, StateTree
>>
root state
Defined in
Methods
install
▸ install(app
): void
Parameters
Name | Type |
---|---|
app | App <any > |
Returns
void
Defined in
use
▸ use(plugin
): Pinia
Adds a store plugin to extend every store
Parameters
Name | Type | Description |
---|---|---|
plugin | PiniaPlugin | store plugin to add |