Skip to content

Guia completo para

Dominar a Pinia

escrito pelo seu criador

API Documentation / pinia / Pinia

Interface: Pinia

pinia.Pinia

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

Hierarchy

Properties

install

install: (app: App<any>) => void

Type declaration

▸ (app): void

Parameters
NameType
appApp<any>
Returns

void


state

state: Ref<Record<string, StateTree>>

root state

Methods

use

use(plugin): Pinia

Adds a store plugin to extend every store

Parameters

NameTypeDescription
pluginPiniaPluginstore plugin to add

Returns

Pinia

Lançada sob a Licença MIT.