All Questions
2,813
questions
0
votes
1
answer
10
views
Firestore snapshot realtime paging
currently i'm working on a Chat project using ReactJS and Firestore. Let say that i have a subcollection messages which contains multiple docs of message. I have a onSnapshot listener to listen newest ...
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 ...
0
votes
1
answer
55
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 [...
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 ...
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" ...
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 ...
1
vote
2
answers
34
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 ...
0
votes
1
answer
48
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 ...
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 ...
0
votes
0
answers
20
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
{/*...
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 ...
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 = ...
0
votes
0
answers
19
views
why data is not being retrieved from firestore
const HandleReadData = async () => {
let url = "[email protected]"
const q = query(collection(db, url));
const querySnapshot = await getDocs(q)
let todosArray = []
...
0
votes
1
answer
32
views
Firestore batch/transaction is not atomic with multiple set, delete inside Cloud Function
I want to delete and create multiple documents in a collection (subcollection) in a single batch, inside a Cloud Function using Firestore Web API. The code inside my Cloud Function looks like this (...
0
votes
1
answer
27
views
Connect to firebase DB [duplicate]
im trying to developt a simple Website in React to know the games that are launched in a month, for that i want to store that data on a firebase db(handmade) and read it.
But in the first trys, im not ...