feature request: allow optional reviver
for json parsing in sessionStorage
#4433
chris-kruining
started this conversation in
Proposals
Replies: 2 comments
-
another usecase might be super JSON for example |
Beta Was this translation helpful? Give feedback.
0 replies
-
Related proposal: #4543 |
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
I would like to serialize/deserialize some data models into the
sessisonStorage
would it be possible to add optional argument
reviver
toremix/packages/remix-node/sessions/fileStorage.ts
Lines 32 to 35 in 358d220
Which would be used in
JSON.parse
onremix/packages/remix-node/sessions/fileStorage.ts
Line 64 in 358d220
This way I can control my serialization with JS'
toJSON
method and deserialization via thereviver
Beta Was this translation helpful? Give feedback.
All reactions