redux-persist-transform-compress
redux-persist-transform-compress copied to clipboard
compressToUTF16 is not compatible when using cookies
trafficstars
compressToUTF16 is great when using Local Storage, but when using cookies, the characters are not accepted by the browsers. compressToEncodedURIComponent would be the right solution in this case.
It would be nice to have some config to choose between compressToEncodedURIComponent and compressToUTF16 or any other available function. This would make this lib compatible with more types of storage.