react-query-firebase
react-query-firebase copied to clipboard
Firebase Error logging in console when fetching data although data is fetched correctly.

This happens in nextJs...
I have the same thing! Sometimes I cant even run my project... Did you solve the issue?
Could you show some code? What causes this to trigger etc?
In my case the thing causing it is custom hook to query the Firestore. I am using react query to make calls to firestore api, so my code looks like this:
icon: string;
title: string;
description: string;
};
export const useRestaurantCooperation = () => {
const ref = query(
collection(
firebaseInstance.firebaseDatabase,
QUERY.HOME.RESTAURANT_COOPERATION,
).withConverter<IRestaurantCooperationFactor>(
new Converter<IRestaurantCooperationFactor>(),
),
);
return useFirestoreQuery([QUERY.HOME.RESTAURANT_COOPERATION], ref);
};
After I created this hook and used it I get this error when starting project (yarn dev):
Now I cant start the project even if I switch to another branch without my changes. Funny thing is that my cooworkers get the same error but despite that the project starts normally
It happens in all queries. I used the same ref on two other hooks and also on the getDocs function, it worked just fine
It seems like it’s doesn’t affect anything, it just displays the warning
Running into the same issue. Doesn't seem to affect anything though
Running into the same issue. Cant run a build due to this breaking the build process in nextjs.
I had to switch to swr-firestore, althought I ended up not using both. firestore caching was enough afterall, just use the realtime functionality