When adding to the firebase list, it should add to the existing data not making the list empty for adding the new data
lets look at the video when clicking on the button1
so it should be like that
and shouldnt be like that!
and here is the block
TIMAI2
September 16, 2025, 5:45pm
2
If you are storing a list as a value to a tag in Firebase, and you want to add to the list, then you need to:
Firstly, call back the value in the tag
Secondly, set the returned value to a variable
Thirdly, add your new data to the list in the variable
Finally, store the value of the variable back to the tag in Firebase
This has its risks, as other users might be accessing the same tag.
It would be more sensible to store each list item as a sub tag of the main tag, then you can add/update/delete just one single element.
[EDIT] or you could try using the "AppendValue" block...
I just followed your instructions but didn't work yet, i dunno how to use the append value too
Lets check if i need to fix anything in that blocks
TIMAI2
September 17, 2025, 3:13pm
4
First method example
Second method example (AppendValue)
thanks so much, i just fixed it
@TIMAI2 its working well now but am just getting that error so how can i fix it?
firebase error
the transaction was overridden by a subsequent set
Should i increase the clock time or another thing?
TIMAI2
September 18, 2025, 8:47am
7
Probably because you are doing a storeValue and AppendValue at the same time
Why not add you new value to the firebasedrivelist and just store that?