Using useInfinteQuery and FlashList together but having issue immediately showing updates
I have a list of items, and a favorite button. When I press the favorite button, it does not update for a few seconds. I need to optimistically update the button to be filled in when pressed. is there a way to conditionally render the favorite button before the data in the query is updated from the server? Maybe the issue is in the logic itself inside of the touchable opacity button...I am checking against the data list "Favorite" which is coming from server, so that is probably why. Rather than the cached version that is changing immediately?
0 Replies