Skip to content

API DocumentationDocs


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

Pinia

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

Released under the MIT License.