We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
$dispose
1 parent 12d9d38 commit 269205fCopy full SHA for 269205f
packages/pinia/src/types.ts
@@ -410,6 +410,9 @@ export interface _StoreWithState<
410
* Stops the associated effect scope of the store and remove it from the store
411
* registry. Plugins can override this method to cleanup any added effects.
412
* e.g. devtools plugin stops displaying disposed stores from devtools.
413
+ * Note this doesn't delete the state of the store, you have to do it manually with
414
+ * `delete pinia.state.value[store.$id]` if you want to. If you don't and the
415
+ * store is used again, it will reuse the previous state.
416
*/
417
$dispose(): void
418
0 commit comments