@pinia/root / pinia / setActivePinia
setActivePinia()
Sets or unsets the active pinia. Used in SSR and internally when calling actions and getters
Param
Pinia instance
setActivePinia(pinia)
ts
function setActivePinia(pinia): PiniaSets or unsets the active pinia. Used in SSR and internally when calling actions and getters
Parameters
• pinia: Pinia
Returns
Param
Pinia instance
setActivePinia(pinia)
ts
function setActivePinia(pinia): undefinedSets or unsets the active pinia. Used in SSR and internally when calling actions and getters
Parameters
• pinia: undefined
Returns
undefined
Param
Pinia instance
setActivePinia(pinia)
ts
function setActivePinia(pinia): undefined | PiniaSets or unsets the active pinia. Used in SSR and internally when calling actions and getters
Parameters
• pinia: undefined | Pinia
Returns
undefined | Pinia
Param
Pinia instance
