Skip to content

TypeErro: Object(...) is not a function when calling useFirestoreConnect #965

Open
@AWIXOR-zz

Description

@AWIXOR-zz

Do you want to request a feature or report a bug?

Bug

What is the current behavior?

I'm using react-redux-firebase and redux-firestore packages. I'm trying to connect firestore to redux using the useFirestoreConnect hook, but after calling this hook it gives me a TypeError like in this picture.

image

image

I've searched in the GitHub issues and docs but I'vent fount any solution.

The error is occurred when calling the useFirestoreConnect hook.

 const userId = useSelector((state) => state.firebase.auth.uid);
  useFirestoreConnect([
    {
      collection: "products",
      doc: userId,
    },
  ]);

Versions of dependencies

   "firebase": "^7.15.0",
   "react": "^16.13.1",
   "react-redux": "^7.2.0",
   "react-redux-firebase": "^3.5.1",
   "redux": "^4.0.5",
   "redux-firestore": "^0.13.0",

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions