filestack / filestack-react

Official React component for Filestack - API and content management system that makes it easy to add powerful file uploading and transformation capabilities to any web or mobile application.
https://www.filestack.com
MIT License
164 stars 40 forks source link

actionOptions don't properly update in the picker on prop change #96

Open CalinLeafshade opened 4 years ago

CalinLeafshade commented 4 years ago

Due to the referenced line the action options are cloned in the component constructor and sent to the picker. This means that if they are changed after mounting then the picker inside the state will not use the new action options.

https://github.com/filestack/filestack-react/blob/c10692a0bccf89f1c9f0a294723d415796619d78/src/ReactFilestack.jsx#L50