From: Eduardo San Martin Morote Date: Thu, 28 Mar 2024 09:56:11 +0000 (+0100) Subject: docs: comment api X-Git-Tag: @pinia/nuxt@0.5.2-beta.0~31 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d8a2f544ff5c84000891badef8bd24c69807d922;p=thirdparty%2Fvuejs%2Fpinia.git docs: comment api --- diff --git a/packages/pinia/src/createPinia.ts b/packages/pinia/src/createPinia.ts index 33e3f448..eb7dc723 100644 --- a/packages/pinia/src/createPinia.ts +++ b/packages/pinia/src/createPinia.ts @@ -67,6 +67,7 @@ export function createPinia(): Pinia { /** * 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. * * @param pinia - pinia instance */