uppy/packages
Mikael Finstad ecdecd1dd6
@uppy/provider-views: fix race conditions with folder loading (#4578)
* fix multiple race conditions

multiple race conditions / bugs:
- If you open a folder in e.g. facebook and you scroll down, triggering the infinity scroll, and then go back (one folder up) before the infinity scroll has finished loading, you could end up with the contents of the scrolled folder instead of the previous folder
- if you select a folder structure (e.g. deep structure with many files) and then click "cancel" while loading, it will still continue loading recursively in the background even after cancelled and potentially cause more issues down the road

* Apply suggestions from code review

Co-authored-by: Antoine du Hamel <antoine@transloadit.com>

* merge conditions

---------

Co-authored-by: Antoine du Hamel <antoine@transloadit.com>
Co-authored-by: Murderlon <merlijn@soverin.net>
2023-07-20 15:20:48 +02:00
..
@uppy @uppy/provider-views: fix race conditions with folder loading (#4578) 2023-07-20 15:20:48 +02:00
uppy Release: uppy@3.12.0 (#4574) 2023-07-13 16:34:41 +00:00