How to update progress bar in async process? #15120
-
I have a script that reads rows from a spreadsheet and loads them in a Firebase database and into an Algolia search index. This happens asynchronously. Only after a row has been saved to Firebase and Algolia, I want to update the Quasar progress bar. However, the progress bar shows immediately 100%, while the records are still being created in Firebase and Algolia. How can I update the progress bar only after a row has been saved to both Firebase and Algolia? My import code:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I solved it myself by adding an additional function for the database update. And the funny thing? I found the answer using the AI program ChatGPT!!! My code now is as follows:
|
Beta Was this translation helpful? Give feedback.
I solved it myself by adding an additional function for the database update. And the funny thing? I found the answer using the AI program ChatGPT!!!
My code now is as follows: