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

compressToUTF16 is not compatible when using cookies

Open felipeptcho opened this issue 4 years ago • 0 comments

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.

felipeptcho avatar May 25 '20 22:05 felipeptcho