Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(ImageUploader): revokeObjectURL while file change #5815

Merged
merged 2 commits into from
Nov 25, 2022

Conversation

IronKinoko
Copy link
Collaborator

fix #5813

@codecov
Copy link

codecov bot commented Nov 16, 2022

Codecov Report

Base: 90.10% // Head: 90.26% // Increases project coverage by +0.15% 🎉

Coverage data is based on head (bfdedf0) compared to base (4577154).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5815      +/-   ##
==========================================
+ Coverage   90.10%   90.26%   +0.15%     
==========================================
  Files         297      297              
  Lines        6387     6387              
  Branches     1576     1577       +1     
==========================================
+ Hits         5755     5765      +10     
+ Misses        580      572       -8     
+ Partials       52       50       -2     
Impacted Files Coverage Δ
src/components/image-uploader/preview-item.tsx 100.00% <100.00%> (+3.33%) ⬆️
src/components/stepper/stepper.tsx 100.00% <0.00%> (ø)
src/components/image-uploader/image-uploader.tsx 96.46% <0.00%> (+7.96%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@github-actions
Copy link
Contributor

PR preview has been successfully built and deployed to https://antd-mobile-preview-pr-5815.surge.sh

zqran
zqran previously approved these changes Nov 18, 2022
return () => {
URL.revokeObjectURL(src)
if (file) URL.revokeObjectURL(src)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

来个测试用例?

@miracles1919 miracles1919 merged commit 3471919 into ant-design:master Nov 25, 2022
@IronKinoko IronKinoko deleted the IronKinoko/issue5813 branch November 25, 2022 03:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ImageUpload 删除图片
4 participants