How do you handle undefined or missing useQuery results with Typescript?
I have this pattern in my components all the time:
How do you solve this elegantly in all your components?
or
Most of the time I'm sure the data itself exists, and so if I check that loading is over, then I should have my data defined. Should I still have a fallback all the time somehow or is there something else I'm missing?
How do you solve this elegantly in all your components?
or
Most of the time I'm sure the data itself exists, and so if I check that loading is over, then I should have my data defined. Should I still have a fallback all the time somehow or is there something else I'm missing?