Open dylinmaust opened 3 years ago
Not sure about the state mutation … It's true that Uppy with the Redux Store does store Blobs in your redux state tree, which may be a problem in itself depending on if you do any persistence.
Please re-open if the issue still occures and you could provide steps to reproduce 🙏
The app crashes with exactly the above mentioned error.
I've configured my app for Uppy integration with Redux based on the docs. The store is configured correctly, and I see actions being dispatches on initialization and when I add a file to the DragDrop component. However, Redux is throwing invariant errors after a file is dropped whenever I call certain functions on the
uppy
instance, likeuppy.removeFile(fileId)
oruppy.upload()
:The
data
key is the blob object, which is not serializable.What could be the issue? Surely, others have used Uppy with Redux + custom UI without facing this?
dependencies: "@uppy/core": "^1.14.0", "@uppy/react": "^1.10.10", "@uppy/store-redux": "^1.2.4"