@pinia/root / pinia / getActivePinia
getActivePinia()
ts
const getActivePinia: () => Pinia | undefined;Get the currently active pinia if there is any.
Returns
Pinia | undefined
@pinia/root / pinia / getActivePinia
const getActivePinia: () => Pinia | undefined;Get the currently active pinia if there is any.
Pinia | undefined