I use a simple useQuery:
const {data, loading, error} = useQuery<ListingsData, ListingsVariables>(LISTINGS, {
variables: {
page: page,
limit: LISTINGS_LIMIT,
sort: sort
}
});
But I noticed that /api is called twice.
I tried to disable React.Strict and tried to use fetchPolicy, but it didn't help.
Is there any way to skip the first fetch??? Or is it OK and I don't need to worry about this at all???