'should i use firestore database to store a boolean value for my button state (pressed/unpressed)
I'm building a food delivery app using Firestore to populate a RecyclerView, I have a button in every view in RecyclerView. I just want to know if I use Firestore boolean to save my buttons state in view, and give permission to the user to change the boolean value when the button is pressed. it will be a good idea to save the state of RecyclerView's view. The problem is if a user changes the boolean value in Firestore, all the users will get the same value and all the users will get some state of the button. is there any way to overcome this problem, please help?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
