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();