When my component first mounts, inside of useEffect() I call getPins(). That function gets some pin objects from a database. The problem is I then need to keep track of how