@pinia/root / pinia / disposePinia
disposePinia()
ts
function disposePinia(pinia): void
Dispose a Pinia instance by stopping its effectScope and removing the state, plugins and stores. This is mostly useful in tests, with both a testing pinia or a regular pinia and in applications that use multiple pinia instances. Once disposed, the pinia instance cannot be used anymore.
Parameters
• pinia: Pinia
pinia instance
Returns
void