Infinite fetch loop with AjaxBar, XMLHttpRequest and watchEffect (or asyncComputed) #16767
Labels
area/plugins
bug/1-repro-available
A reproduction is available and needs to be confirmed.
flavour/quasar-cli-vite
kind/bug 🐞
Qv2 🔝
Quasar v2 issues
What happened?
Same as #10780 I've encountered problems with Axios inside asyncComputed(vueuse) causing infinite loop with AjaxBar on
I had a guess that this is not caused by Axios itself and tried to reproduce it without Axios
What did you expect to happen?
QAjaxBar to not cause infinite request loop when using XMLHTTPRequest
Reproduction URL
https://codepen.io/dimava/pen/YzgpVOW
How to reproduce?
Synchronously create
new XMLHttpRequest()
and.open(...)
it inside awatchEffect
watcherThis will cause infinite fetch loop every second, caused by
onScreen.value
being read synchronously insidestart
and thus being recorded as a dependency bywatchEffect
Flavour
Quasar CLI with Vite (@quasar/cli | @quasar/app-vite)
Areas
Plugins (quasar)
Platforms/Browsers
Chrome, Microsoft Edge
Quasar info output
No response
Relevant log output
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: