-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
@uppy/provider-views: fix race condition when adding folders (#4384)
* fix race condtion when adding files don't call addFolder from listAllFiles because that would call addFile before all folders were loaded also remove unused selectedFolders state * fix also the case of adding multiple folders * fix todo: remove SharedHandler * remove loaderWrapper * fix logic * fix the last race condition * fix broken duplicate file check * fix logic * prettiyfy loop * add user feedback so they know that something is happening * run corepack yarn run build:locale-pack * Revert "run corepack yarn run build:locale-pack" This reverts commit 85548ce. * Revert "add user feedback" This reverts commit 4060019. * use async generator instead of p-map * re-fix race-condition * remove providerFileToId as suggested by @arturi * use addFiles instead of addFile * rename function * use provider-supplied file ID instead of generating an ID, for providers that we whitelsit this allows adding the same time many times (with a different path) * call core directly * improve dev dashboard * disable experimental getAsFileSystemHandle it seems to be causing problems when dropping folders with subfolders in newest chrome e.g a folder with 50 files and a subfolder which in turn has another 50 files also refactor and document the code more * Update packages/@uppy/provider-views/src/ProviderView/ProviderView.jsx Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com> * mov eto utils --------- Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
- Loading branch information
Showing
8 changed files
with
273 additions
and
282 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.