@uppy/react
Advanced tools
Comparing version 3.0.0 to 3.0.1
# @uppy/react | ||
## 3.0.1 | ||
Released: 2022-08-30 | ||
Included in: Uppy v3.0.1 | ||
- @uppy/react: useUppy: fix unmount on NextJS dev mode (Matt Jesuele / #4062) | ||
## 3.0.0 | ||
@@ -4,0 +11,0 @@ |
@@ -20,3 +20,5 @@ import { useEffect, useRef } from 'react'; | ||
return () => { | ||
uppy.current.close({ | ||
var _uppy$current; | ||
(_uppy$current = uppy.current) == null ? void 0 : _uppy$current.close({ | ||
reason: 'unmount' | ||
@@ -23,0 +25,0 @@ }); |
{ | ||
"name": "@uppy/react", | ||
"description": "React component wrappers around Uppy's official UI plugins.", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"license": "MIT", | ||
@@ -25,3 +25,3 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"@uppy/utils": "^5.0.0", | ||
"@uppy/utils": "^5.0.1", | ||
"prop-types": "^15.6.1" | ||
@@ -34,4 +34,4 @@ }, | ||
"peerDependencies": { | ||
"@uppy/core": "^3.0.0", | ||
"@uppy/dashboard": "^3.0.0", | ||
"@uppy/core": "^3.0.1", | ||
"@uppy/dashboard": "^3.0.1", | ||
"@uppy/drag-drop": "^3.0.0", | ||
@@ -38,0 +38,0 @@ "@uppy/file-input": "^3.0.0", |
@@ -20,3 +20,3 @@ import { useEffect, useRef } from 'react' | ||
return () => { | ||
uppy.current.close({ reason: 'unmount' }) | ||
uppy.current?.close({ reason: 'unmount' }) | ||
uppy.current = undefined | ||
@@ -23,0 +23,0 @@ } |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
114287
1873
Updated@uppy/utils@^5.0.1