It could be handy for state to persist in local storage. This is especially true for small, PWAs. ## Todos - [ ] Add constructor parameter - [ ] Feature detect that storage is available - [ ] Hydrate from local storage on instantiation if enabled - [ ] Self-subscribe to changes and automatically update storage - [ ] Add `clear` method if the local storage needs clearing for some reason
It could be handy for state to persist in local storage. This is especially true for small, PWAs.
Todos
clearmethod if the local storage needs clearing for some reason