Socket
Socket
Sign inDemoInstall

@uppy/react

Package Overview
Dependencies
Maintainers
8
Versions
112
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@uppy/react - npm Package Compare versions

Comparing version 2.2.1 to 2.2.2

7

CHANGELOG.md
# @uppy/react
## 2.2.2
Released: 2022-06-07
Included in: Uppy v2.12.0
- @uppy/react: Reset uppy instance when React component is unmounted (Tomasz Pęksa / #3814)
## 2.2.1

@@ -4,0 +11,0 @@

3

lib/useUppy.js

@@ -28,5 +28,6 @@ const {

});
uppy.current = undefined;
};
}, []);
}, [uppy]);
return uppy.current;
};
{
"name": "@uppy/react",
"description": "React component wrappers around Uppy's official UI plugins.",
"version": "2.2.1",
"version": "2.2.2",
"license": "MIT",

@@ -38,5 +38,5 @@ "main": "index.js",

"peerDependencies": {
"@uppy/core": "^2.3.0",
"@uppy/core": "^2.3.1",
"react": "^16.0.0 || ^17.0.0 || ^18.0.0"
}
}

@@ -21,6 +21,7 @@ const { useEffect, useRef } = require('react')

uppy.current.close({ reason: 'unmount' })
uppy.current = undefined
}
}, [])
}, [uppy])
return uppy.current
}

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc