Daniel Bischoff
Daniel Bischoff
@baskin I had the same problem and the line you linked is responsible for only fetching it once. My solution to this problem is this: ``` const { data, loading,...
Because if the type would be `TData | {}`, you would have to declare a custom type guard for the type {} instead of just writing `if(!data)`.
``` export const App: React.FC = () => { const { data } = useQuery(GET_USER); if (!data) { return ; } return Name: {data.user.name}; }; ``` This is the perfect...