[Vuejs]-Continuous polling to backend is stalling (vuejs)

1👍

Turns out it wasn’t a conflict with any of my code but an issue with Chrome.

ref: Chrome stalls when making multiple requests to same resource?

fix: adding arbitrary params to the query string resolves the stalling issue.

// Increment this.unique on each setInterval() call (0, 1, 2, 3...)

axios.get(url, {
  params: {
    rand: this.unique
  }
})
.then(...)
👤Ryan

Leave a comment