I have played with all recommended/supported storage 1. redux-persist-node-storage The redux-persist interface used on this project is too much outdated, the project seems to be abandoned. The last commit was in Dec 2017. 2. redux-persist-fs-storage and here are some thoughts about those: This is React Native online and I did not play with. 3. redux-persist-cookie-storage I could use this storage but not on Apollo. Seems the store doesn't provide the same interface's method used by Apollo.
index.js:1452 [apollo-cache-persist] Error restoring cache TypeError: this.storage.getItem is not a function |
at Storage.<anonymous> (bundle.umd.js:262)
|
We have decided to use window.localStorage for now until we need to create (wrapper) our own storage and provides a way to the developer use there own storage. |