@uppy/react
Advanced tools
Comparing version 2.2.1 to 2.2.2
# @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 @@ |
@@ -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
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
95048
1483