Theo's Typesafe CultTTC
Theo's Typesafe Cult3y ago
5 replies
JudgeJLo

Typing Props

I have a query that is returning an array of items. I'm then mapping over that array and rendering elements in a child component. I did some wacky stuff to get the type from the api but that felt VERY wrong. Currently just passing an id and refetching inside the child, but that also seems wrong. What is the best practice here?
Screenshot_2023-02-11_011728.png
Was this page helpful?