Reactjs – Trouble correctly inferring type with Typescript and React Query
I have a React component that looks like this (highly simplified code): const TestComponent = () => { const { data: stuff, isLoading: isLoadingStuff, isSuccess: hasLoadedStuff } = useStuff(); // ... other similar RQ query wrapper hooks const isLoading =…