[Vuejs]-Problem w/state of a vue data object in component

0👍

This was my bad. I didnt realize I had created a closure in getBoxScores.js:

let boxScores = [];
let promises = [];

try {
  const getBoxScores = async (gameIDs, myUrl, params) => {
   gameIDs.forEach(function(item) {
      promises.push(
        axios({
          method: "get",
          headers: {
            Authorization:
              "Basic &&^^&^&&^FGG="
          },
          url: myUrl + item,
          params: params
        })
      );
    });

Moving declarations inside async function quickly solved trouble. URRRRGGGHHH!!!

Leave a comment