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