Best way to infer loaderData types from a route? #4106
Unanswered
merthanmerter
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When I want to type props based on another route’s loader data, I’m currently doing
Is there a more concise or alternative way to infer the type?
If not, what do you think about using a helper type like this?
Then it could be used like:
Would love to hear if there’s an official recommendation or if people are doing something similar!
Beta Was this translation helpful? Give feedback.
All reactions