I am building a social app, and the query generating the posts must be single time, but that does not allow the like button and like count to be updated when a user likes a post (changing heart icon color and like count number). I don't care how it works as long as the user can see it updating dynamically, whether this is done with local states and then batch updates to Firebase, or updating only a specific child in a list of dynamically generated children WITHOUT updating the entire list. I have been searching for a way to accomplish this, and I'm sure it can be done, but I cannot figure it out. The query is on the page level, and then 2 list views generate children dynamically, one on "Explore" and one on "Following".
Update data inside a dynamically generated child in a list, without updating the entire list.
Actions & Logic
I've tried using multiple queries, refresh database actions, and adding unique identifiers to the children (but I don't think I implemented this correctly as it caused an error in test mode).
Yes
3 replies