redux-persist
redux-persist copied to clipboard
Implementing custom persistor
Is it possible to write a short example of a custom persistor? Like even if much of it is ust pseudo-code? The types are super generic, returning any for just about everything.
My big question is for the getItem method, am I supposed to return the state as an object or as stringified json, since the setItem method is fed a json string?
Thanks in advance.
Nevermind... you can mark this as closed. I just found the WebStorage type... but it would help if there was a short mention of this in the readme.