hydrated_mobx library

An extension to package:mobx which automatically persists and restores mobx states. Built to work with package:mobx.

Get started at mobx.dev 🚀

Classes

HydratedAesCipher
Default encryption algorithm. Uses AES256 CBC with PKCS7 padding.
HydratedCipher
Abstract cipher can be implemented to customize encryption.
HydratedMobX
An abstract class which enables automatic state persistence for classes using Store. This allows state to be persisted across hot restarts as well as complete app restarts.
HydratedStorage
Implementation of Storage which uses package:hive_ce to persist and retrieve state changes from the local device.
HydratedStorageDirectory
A platform-agnostic storage directory representation.
Storage
Interface which is used to persist and retrieve state changes.

Exceptions / Errors

HydratedCyclicError
Reports that an object could not be serialized due to cyclic references. When the cycle is detected, a HydratedCyclicError is thrown.
HydratedUnsupportedError
Reports that an object could not be serialized. The unsupportedObject field holds object that failed to be serialized.
StorageNotFound
Exception thrown if there was no HydratedStorage specified. This is most likely due to forgetting to setup the HydratedStorage: