Replies: 1 comment
-
To send an update to the frontend in the middle of an event handler, use Although keep in mind that the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, I'm seeking advice on updating the progress bar value without causing the UI to freeze. Currently, my code functions like this: whenever the
upload
function is activated, theself.progress
value is updated at the state level. However, these updates aren't reflected until all uploads are complete, after the gather function returns. Is there a more effective approach? My project involves uploading numerous images, so it's crucial to accurately track the progress. Unfortunately, theprogress dict
fromhandle_upload_progress
isn't proving to be very helpful in this scenario.Beta Was this translation helpful? Give feedback.
All reactions