@micromerce/media-fileuploader 1.0.1059 → 1.0.1065

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cjs/index.js CHANGED
@@ -18266,6 +18266,9 @@ const FileUploader = ({ ...props }) => {
18266
18266
  setUppy(uppyInstance);
18267
18267
  return () => uppyInstance.close();
18268
18268
  }, []);
18269
+ r$1.useEffect(() => {
18270
+ setFile(initialFile); //* update file on value change
18271
+ }, [value]);
18269
18272
  r$1.useEffect(() => {
18270
18273
  if (onError && errorMessage)
18271
18274
  onError(errorMessage);