kiliman / remix-typedjson

This package is a replacement for superjson to use in your Remix app. It handles a subset of types that `superjson` supports, but is faster and smaller.
MIT License
435 stars 19 forks source link

Add option to serialize custom data types #5

Closed IgnisDa closed 2 years ago

IgnisDa commented 2 years ago

Awesome project!

I would like to serialize DateTime (from luxon), inbuilt URL data type etc. For reference, I am using https://github.com/clentfort/urql-custom-scalars-exchange to serialize the data in loader.

kiliman commented 2 years ago

Part of the reason for this package is that I wanted it to be lightweight. If you need more advanced type configuration, I recommend sticking with superjson.

I have a project showing how to use superjson with Remix. https://github.com/kiliman/remix-superjson

IgnisDa commented 2 years ago

Alright makes sense. Thanks for the prompt response!