Replies: 1 comment 3 replies
-
This is probably the only thing keeping us from migrating Remix to RR7, we also use Luxon DateTime and not being able to deserialize loader data to the proper types makes RR7 un-usable. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Note: this has been moved from the Remix discussion
I'd like to propose an api for registering custom turbo-stream plugins for use in the encoding / decoding of loader-data. A specific use-case is to be able to send and receive Luxon DateTime or BigNumber instances which we've standardised on within our apps. Currently we do this via wrappers around the existing useDataLoader and friends but the move to turbo-stream makes this feel a bit less natural and continuing as we currently do would mean missing some of the router improvements.
An example of registering a plugin for encoding/decoding a Luxon DateTime.
Beta Was this translation helpful? Give feedback.
All reactions