@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): Pinia
Sets 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): undefined
Sets 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 | Pinia
Sets 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