Closed jsaraiva closed 6 years ago
Hi @jsaraiva,
Thanks for opening the issue.
I've just updated the README. Do you think anything else needs changing?
Hi @robwalkerco ,
I think it looks great! This was the only issue that I had in getting the module to work, so I don't believe that the README requires any further changes.
Thanks!
Using latest version of redux-persist ("^5.10.0") and redux-persist-filesystem-storage ("^1.3.1").
The documentation says to pass the FilesystemStorage to persistStore, like so:
I was only able to get this module to function if, instead of passing it to persistStore, I passed it to the topmost persistReducer call:
Also related to this, the documentation says, in the "usage with custom options" section, that you can call .config on the FSS object, and pass the result to storage:
Actually, the config method doesn't return anything (https://github.com/robwalkerco/redux-persist-filesystem-storage/blob/master/index.js#L17), so you can just call it as soon as you load the module, and then pass the object later on to persistReducer: