Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@uppy/provider-views: fix race condition when adding folders #4384
@uppy/provider-views: fix race condition when adding folders #4384
Changes from 15 commits
9b093ae
25f6228
cd121f3
ea3cb23
c80f11a
c533c90
cd5d099
67023a8
80bd293
4060019
85548ce
647e48e
5434fc8
50a0bec
f91b514
6abcb94
b5d6b78
fa3e66f
4795c41
75ab3d5
79abf68
cf01707
d1d9132
8f5c32d
46368c8
cf91ef2
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe it's not something to do in this PR, but we might consider having another way to signal the UI that the loading is not done, as it's not a great UX to get stuck on a loading screen for too long.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, there is currently no deterministic way to know whether we are still adding files. It probably requires as state machine of some sorts, where we can only be in one state at a time and a promise will make it move to the next. But that's a bigger undertaking.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We would need to define then what should the UX be like. What do we show the user while files are loading? Is there anything more useful we can do than showing a loading screen and possibly a number of files loaded? We could immediately send them to the list of added files, and then disable the Upload button until everything is added, but I don't know how much value it gives the user to be able to browse files while new files are popping into view continuously, and they will not be able to click Upload.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To me that with a spinner of some sort or a progress bar is the UX I'd expect. The question is if it's enough of a common use case to prioritize implementing like that, if it's not trivial.