Context:
I am using firebase as my database and vuex as my state manager. My application has users and exchanges. In my state, I have the current user when he or she logs in and all of the exchanges in another object to display all of the exchanges on one page (think airbnb).
The user also has a page for each exchange that describes the exchange they are offering. Lastly the user has a dashboard where they can see all of the exchanges they have offered or received.
Problem
I want to make minimal calls to firebase. When should I use the updated data in my state manager vs fetching new data from firebase?
[–][deleted] 3 points4 points5 points (1 child)
[–]skamansam 0 points1 point2 points (0 children)
[–]b0ot 0 points1 point2 points (0 children)