When working on my NextJs/React project, I encountered an issue while using the useCollectionData
hook. The problem arises when fetching posts from my firestore database, resulting in the error message TypeError: v1.isEqual
is not a function
Below is the code snippet that I am currently utilizing to retrieve the posts:
const [posts]: [Post[] | undefined, boolean, Error | undefined] =
useCollectionData<Post>(renderPosts, { idField: "id" });