export SerializeFrom #12417
yoshizawa56
started this conversation in
Proposals
Replies: 1 comment 1 reply
-
With react-router v7 it seems you don't need to use
see: https://remix.run/docs/en/main/start/future-flags#serializefrom |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Background
With the integration of Remix into React Router v7, the
SerializeFrom
type that was previously exported from Remix is no longer available. This type was particularly useful for type definitions when working with loader data.Use Case
The
SerializeFrom
type was helpful in properly typing the data returned from loaders, ensuring type safety when accessing loader data in components. For example:Request
Could you consider re-exporting the
SerializeFrom
type in React Router v7? This would help maintain consistency for projects migrating from Remix and provide a useful typing utility for the broader React Router community.Thank you for considering this request.
Beta Was this translation helpful? Give feedback.
All reactions