API Documentation • Docs
API Documentation / pinia / Pinia
Interface: Pinia
Every application must own its own pinia to be able to create stores
Extended by
Properties
install()
install: (
app
) =>void
Parameters
• app: App
<any
>
Returns
void
state
state:
Ref
<Record
<string
,StateTree
>,Record
<string
,StateTree
>>
root state
Methods
use()
use(
plugin
):Pinia
Adds a store plugin to extend every store
Parameters
• plugin: PiniaPlugin
store plugin to add