Skip to content

Latest commit

 

History

History
20 lines (15 loc) · 494 Bytes

recycle.md

File metadata and controls

20 lines (15 loc) · 494 Bytes
layout title description permalink
docs
Recycle
Reset stores back to original state
/docs/recycle/

recycle

(...storeNames: ?string|AltStore): undefined

If you wish to reset a particular, or all, store's state back to their original initial state you would call recycle. Recycle takes a splat of stores you would like reset. If no argument is provided then all stores are reset.

// recycle just MyStore
alt.recycle(MyStore);

// recycle all stores
alt.recycle();