Open AWIXOR-zz opened 4 years ago
It is good to check for the existence of that user id before using it as part of the query since it takes time to load auth into state, could you see if the following helps solve your issue?:
useFirestoreConnect(userId && [
{
collection: "products",
doc: userId,
},
]);
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
I'm using
react-redux-firebase
andredux-firestore
packages. I'm trying to connect firestore to redux using theuseFirestoreConnect
hook, but after calling this hook it gives me a TypeError like in this picture.I've searched in the GitHub issues and docs but I'vent fount any solution.
The error is occurred when calling the
useFirestoreConnect
hook.Versions of dependencies