My apollo/client - useQuery is loading twice which is normal based on normal flow but when I have my network tab on devtools open and noticed weird stuff.
I have 2 cancelled request I don't know why.
My code is identical to apollo client docs
function Dogs({ onDogSelected }) {
const { loading, error, data } = useQuery(GET_DOGS);
if (loading) return 'Loading...';
if (error) return `Error! ${error.message}`;
return (
<select name="dog" onChange={onDogSelected}>
{data.dogs.map(dog => (
<option key={dog.id} value={dog.breed}>
{dog.breed}
</option>
))}
</select>
);
}
Anyone encountered this before?


