I have a VUE app that performs background tasks for various seconds when user clicks a button, freezing all the UI
.vue file:
....
methods:{
do_task(){
this.calculator.calculate() //this takes a lot of seconds and the UI freeze
}
}
calculator.calculate() is like a nested for cycle that takes time
looking for a solution, the best would be not freezing ad all (background task pattern), but also refreshing the UI at least twice per second is ok (some progress feedback to the user)
how can I achieve this?