API Documentation • Docs
API Documentation / pinia / setActivePinia
Function: setActivePinia()
Sets or unsets the active pinia. Used in SSR and internally when calling actions and getters
Param
Pinia instance
setActivePinia(pinia)
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)
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)
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