redux_persist library

Classes

FileStorage
Storage engine to save to file.
MemoryStorage
Storage engine to save to memory. Do not use in production, this doesn't persist to disk.
PersistAction
PersistErrorAction
Action being dispatched when error loading/saving to disk.
PersistLoadedAction<T>
Action being dispatched when done loading the state from disk.
PersistLoadingAction
Action being dispatched when loading the state from disk.
Persistor<T>
Persistor class that saves/loads to/from disk.
PersistSavedAction
PersistSavingAction
RawTransforms
Holds onSave and onLoad raw transformations.
StorageEngine
Interface for storage engines
Transforms<T>
Holds onSave and onLoad transformations.

Typedefs

Decoder<T>(dynamic json) → T
Decoder of state from json to
Encoder<T>(T object) → String
Encoder of state from object to JSON String.
Migration(dynamic state) → dynamic
State migrations (immutable).
RawTransformer(String json) → String
Transforms JSON state (immutable).
Transformer<T>(T state) → T
Transforms state (immutable).

Exceptions / Errors

InvalidVersionException
Version is too low/high.
SerializationException
Serialization failed.
StorageException
Saving/loading failed.
TransformationException
Transformation failed.