Skip to main content

All Questions

0 votes
1 answer
29 views

Lazy loading is returning empty array

import React, { useState, useRef, useEffect } from "react"; import { collection, query, where, getDocs, startAfter, limit, startAt, } from "firebase/firestore"; ...
Vishesh Gupta's user avatar
1 vote
0 answers
31 views

How can I update/create multiple documents in a collection in firebase?

I'm trying to use a default collection in firebase that a user can overwrite with their own values and save elsewhere. I have a default collection from which the initial values will be drawn, and have ...
Apersu's user avatar
  • 11
0 votes
1 answer
53 views

fetch only one data of single document instead of all documents

I'm trying to fetch all data of documents inside the collection but unfortunately the code only fetch data of one single document. const Charities = ({navigation}) => { const [...
Omar Bakoban's user avatar
0 votes
1 answer
17 views

Chat History Fetched from Cloud Firestore Not Displaying in React Frontend

Problem: Despite successful data fetching and processing, the chats do not appear in the UI. Could someone point out what might be going wrong or suggest any debugging steps? I'm working on a web app ...
Shripal Shah's user avatar
0 votes
0 answers
20 views

Firebase DocumentReference and Timestamps being lost? [closed]

I'm in the midst of a rework for one of the contexts in my project. It was previously all fetched and filtered on the front end but I was noticing performance issues with large data sets. I decided to ...
Luke Andrews's user avatar
0 votes
2 answers
36 views

How do I retrieve data from firestore

I am trying to create a chat app using react vite and firebase, i am using firestore to store and retrieve chats, i imported getFirestore from firebase/firestore, and passed it to the "db" ...
Kevin Anthony's user avatar
0 votes
0 answers
20 views

Cloud Build Variables are not getting imported into my React Application

Bare with me as I'm new to a lot of these concepts and my terminology may not be correct. I have a React application that I have running in a Google App Engine. I've set up a Cloud Build to ...
C Knight's user avatar
1 vote
2 answers
33 views

Fetching data from firebase and forwarding it to another component forwards an empty array

I am using an array and useState() to fetch the data from the firebase database. The array is initially empty. However after I recieve the data from the firebase after its initial loading and try to ...
NAMAN SAINI's user avatar
0 votes
1 answer
47 views

Fetch each user data from Firestore failed

I'm trying to fetch each user data from firestore based on the user login, between I'm using React Native and firebase. Fetch code const UserInbox = () => { const auth = getAuth(app) const ...
Omar Bakoban's user avatar
0 votes
1 answer
33 views

How to ensure immediate display of cart items quantity in React Redux Toolkit

I'm using React Redux Toolkit with Firebase Firestore to manage a shopping cart feature. I've set up a query using useGetCartItemsQuery from CartItemsSlice to fetch cart items based on the current ...
Andrian's user avatar
  • 29
0 votes
1 answer
21 views

component is re-rendering after receiving new data from server

I'm trying update my chats list. I'm receiving an object from server using "onSnapshot" query method of firestore and these object represents users, groups and channels. Then I'm combining ...
Dil Ak's user avatar
  • 17
0 votes
0 answers
19 views

I'm facing this error due to update user image possible unhandled promise rejection (id 3) typeerror network request failed

I'm using React native expo with fire-store and I'm trying to update and upload user image so when I open the album to select a photo then press update button I get this error Here is the Code {/*...
Bashamlan Salem's user avatar
0 votes
0 answers
52 views

Error: Target container is not a DOM element. Test React Vitest

Issue: An "Error: Target container is not a DOM element" occurs when running tests for a React component that utilizes Firebase to add documents. Observed Behavior: The application ...
Laurine RAT's user avatar
1 vote
1 answer
63 views

TypeError: Cannot read properties of null (reading 'indexOf')

I am making a chat app using react and Firebase. I keep getting Type error either not being able to read undefined ('_delegate') or indexOf. There seems to be a problem with the useCollection hook. ...
bingus's user avatar
  • 13
0 votes
0 answers
22 views

How to perform a case-insensitive search based on a specific field value in Firestore? [duplicate]

I am trying to perform a query in Firestore where the field name and value should be matched irrespective of the case. For example: fruit = manGo , value = mango code which considers case : const q = ...
ShashidharM's user avatar

15 30 50 per page
1
2 3 4 5
237