Replies: 1 comment
-
It would be amazing ! |
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
-
Edit: I've converted this to a proposal from Q&A after doing some more digging and watching the latest roadmap video covering type-safe routing in React Router V7.
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 LuxonDateTime
orBigNumber
instances which we've standardised on within our apps. Currently we do this via wrappers around the existinguseDataLoader
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