Is there a way to use type inference with useRouteData? #96
-
I'm trying to rely on inference over passing interfaces all over the place. And i'm wondering if theres a way to make this work: It's returning a Promise, so i'm half way there. But awaiting here doesn't work |
Beta Was this translation helpful? Give feedback.
Answered by
sergiodxa
Sep 9, 2022
Replies: 1 comment 2 replies
-
You need to use the Remix’s SerializeFrom type to infer the result of the loader |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
Rocinante89
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You need to use the Remix’s SerializeFrom type to infer the result of the loader