Allow to customise de cookie decode data #7424
armandabric
started this conversation in
Proposals
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey there,
Remix push some good practice when using cookies:
I'm trying to make Remix work along a legacy application that does not encode cookies (yes this is just a
JSON.stringify). I do not have the luxury to change this behaviour in this application.I agree that the encoding/decoding cookie feature should be the Remix default. But I think this behaviour should be customisable like the sign cookie feature.
Did you think it's a good idea? I could make the PR if this is a wanted
The part of the code that is not customisable today:
remix/packages/remix-server-runtime/cookies.ts
Lines 182 to 192 in 30bcd9e
Beta Was this translation helpful? Give feedback.
All reactions