I have been dealing with this for several hours and I am not sure if it is me doing something wrong or that RS has this bug.
I have a component that has a lot of info or props carried from a collection called ‘preloads’, which is the one that is populated with this component. I have placed a button in this component that I want to be used to save data in a different collection. Specifically I am looking to save the date when this button is clicked, and maybe the name of the document in the original collection.
I have established everything fine. The ‘users’ dataSheet where the info is to be saved. The button inside the document with the action “Save data” and the information that I want to be saved:
As you can see in the screenshot, I have left blank the fields that I don’t want to be “touched” and added the script to save the field “date”. However, if I select the option “Update”, it won’t do anything. The most surprising behaviour for me is that if I select “Auto”, it will add all of the document information (props of the component) in the ‘users’ collection even though I haven’t pointed that to happen.
That takes me to an old problem that I have had before. I believe that the “Update” option in the Save Data interaction for Firebase doesn’t work well. That option should just update the field that is pointed in RS, but it doesn’t seem to do anything unless I am doing something wrong.