Skip to main content

All Questions

Tagged with
0 votes
1 answer
73 views

Why isn't my array updating even though it updates when I console.log()

I am working on a booking system and when someone books a time, I made it so that it removes the time from the database which works fine. Here you can see what my database looks like: database. I want ...
Dhruv's user avatar
  • 1
0 votes
2 answers
50 views

Capturing data out of a firebase collection, and actually making it usable?

I have a collection in firebase called "polls". The collection is an array, and within the array I have 4 urls (url_a, url_b, url_c, and url_d). I want to pull these urls out of the array in ...
m_h9's user avatar
  • 11
0 votes
2 answers
41 views

Array pushes elements already in Array despite !arry.includes

I am trying to build an app that requires a directory. Every time I update the component, it pushes the data into the array again creating multiple copies. I tried solving that by adding an !arry....
Jacqueline's user avatar
1 vote
2 answers
527 views

Javascript how to rename a variable in array deconstructor

I have a deconstructured array of values, as instructed in the docs. (react-firebase-hooks) const [ signInWithEmailAndPassword, loading, error] = useSignInWithEmailAndPassword(auth); All is fine, but ...
downtalo's user avatar
1 vote
1 answer
49 views

Trying to retrieve element from object in React results in undefined

I'm trying to retrieve the value of "id" from a one-object-long array in React. (The data is coming from Firebase). I have tried every possible combination of code, but it always gives me ...
u4ii4y984484y203r's user avatar
0 votes
1 answer
374 views

How Do I Set Doc Without Overwriting Array In Firestore React

I'm building a to-do style app in react. I'm using firebase/firestore for my data. My users collection and document look like this: Here's my createLabel function: const createLabel = async () => ...
jakeycodez's user avatar
0 votes
1 answer
42 views

Firebase array data delay - not submitting data whenever I submit it for the first time

I am getting error when I submit my data for first time: but when I submit same data for second time it is sending. My code const CreateQuiz = () => { const { currentUser } = useContext(...
Adonis's user avatar
  • 17
0 votes
1 answer
427 views

How To Delete Object In Firebase Array

I'm currently struggling to delete an object/field inside a document in firebase. I'm able to delete a collection, or a full document, but not the name/tag fields for a given id. Does anyone know how ...
jakeycodez's user avatar
0 votes
1 answer
48 views

React/Firebase. What to do if copies of an array are constantly creating?

I created a function that makes the block disabled when I click on it. When I click on the button - constantly creating copy of an array consisting of other arrays and after the timer expires I get a ...
Eugene Kliuchnikov's user avatar
1 vote
1 answer
709 views

How to read array document field from firebase firestore (React js)

Hi I am trying to get todo array field from cloud firestore database in a react project. When i print out with console log I can see the empty array symbol but It throws error at the same time and ...
GokaySendil's user avatar
0 votes
1 answer
201 views

Add Array of Objects into UseState ([])

i´m getting following error message "Error: Objects are not valid as a React child (found: object with keys {fzfvhv76576, user }). If you meant to render a collection of children, use an array ...
xne2687's user avatar
  • 33
0 votes
1 answer
236 views

List items get duplicated in React Native

I have the following code sequence where some calendar data is checked with scheduling data. The problem is that if there are 2 or more appointments, I get the rest duplicated, tripled. How can I ...
Asaftei Nicoleta's user avatar
1 vote
1 answer
208 views

Firebase listAll() function gives me same array from storage 2 times

I am trying to display my images from firebase/storage but when I use listAll() to display my images on my app same images appear 2 times on the screen . I couldn't find what is cause this . This code ...
Utku AKTAS's user avatar
0 votes
2 answers
216 views

How to get reference data inside map of parent data in Firebase

I can't get this to work. Code is as follows and problem is res.data() doesn't show in de docs object. getProjects = async () => { const colRef = db.collection('parentCollection').orderBy('...
Abdul Mahamaliyev's user avatar
1 vote
2 answers
191 views

Finding image uri in a nested array

I am trying to get the image uri from this payload. I can get to the image array with this but no further. bikesArray.map(bikes => bikes.customerBikeImage.assets) The entire payload is like this. ...
JasonBeedle's user avatar

15 30 50 per page
1
2 3 4 5 6