sarink / react-file-drop

React component for Gmail or Facebook -like drag and drop file uploader
https://www.sarink.net
176 stars 54 forks source link

Using UNSAFE_componentWillReceiveProps in strict mode #85

Closed Birkenpapier closed 2 years ago

Birkenpapier commented 2 years ago

Using the component inside an parent component will lead to this error:

grafik

What can be done about this?

sarink commented 2 years ago

Dup of https://github.com/sarink/react-file-drop/issues/83

This lib needs to be rewritten with hooks and stop using the deprecated lifecycle methods. It may be awhile until I get around to that. Functionally speaking, everything works. Unfortunately, the only solution to this warning is to disable strict mode for now.