Skip to content

@pinia/root / pinia / setActivePinia

setActivePinia

ts
const setActivePinia: _SetActivePinia;

Sets or unsets the active pinia. Used in SSR and internally when calling actions and getters

Param

Pinia instance

Released under the MIT License.