Cretezy / redux_persist

Persist Redux State
https://pub.dartlang.org/packages/redux_persist
MIT License
130 stars 41 forks source link

Web support #1

Closed Cretezy closed 6 years ago

Cretezy commented 6 years ago

Would be nice to decouple the PersistorGate and enable custom storage drivers, so we can support localStorage on the web.

Cretezy commented 6 years ago

My thoughts is that there should be a redux_persist_flutter package that implements a storage driver (and includes the PersistorGate, since it's Flutter-specific), and eventually a redux_persist_web package that saves to localStoage

Cretezy commented 6 years ago

I've created a generic StorageEngine and FlutterStorage, and updated the example. This should allow for a better decoupling.