Closed ghost closed 3 years ago
Hey, I am using the useCollectionData hook in NextJs/React project. I am fetching some posts from my firestore database and I am getting this error TypeError: v1.isEqual is not a function
useCollectionData
TypeError: v1.isEqual is not a function
This is the code that I am using to fetch the posts.
const [posts]: [Post[] | undefined, boolean, Error | undefined] = useCollectionData<Post>(renderPosts, { idField: "id" });
Can anyone help me fix this bug?
Same problem here. Reverting to a React side effect + firestore API onSnapshot.
The problem is with useCollectionData, it is not compatible with v9 sdk.
const posts: any = await getDocs(collection(db, "posts"))
Hey, I am using the
useCollectionData
hook in NextJs/React project. I am fetching some posts from my firestore database and I am getting this errorTypeError: v1.isEqual is not a function
This is the code that I am using to fetch the posts.
Can anyone help me fix this bug?