redux-persist icon indicating copy to clipboard operation
redux-persist copied to clipboard

Implementing custom persistor

Open flusterIO opened this issue 6 months ago • 1 comments

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.

flusterIO avatar Jun 09 '25 00:06 flusterIO

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.

flusterIO avatar Jun 09 '25 15:06 flusterIO