When using uppy .on callbacks in an functional component the previous state seems to be overwritten.
See example at https://codesandbox.io/s/optimistic-mclaren-zbyvh?file=/src/App.js
The example displays a simple ui with a drag and drop uploader. When you select a file it should be added to the existing file in the files list, however the newly selected file seems to always wipe out and replace the list.
Is there a way to use the .on callbacks with uppy in a way that does not overwrite the current state?