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(module:icon): debounce icon rendering on animation frame #8579

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

arturovt
Copy link
Member

@arturovt arturovt commented Jun 14, 2024

Closes #7825

@arturovt arturovt changed the title fix(module:icon): debounce icon rendering on animatin frame fix(module:icon): debounce icon rendering on animation frame Jun 14, 2024
Copy link

zorro-bot bot commented Jun 14, 2024

This preview will be available after the AzureCI is passed.

@arturovt arturovt force-pushed the fix/7825 branch 2 times, most recently from d93128a to 6bb1b28 Compare June 14, 2024 17:37
Copy link

codecov bot commented Jun 14, 2024

Codecov Report

Attention: Patch coverage is 93.33333% with 1 line in your changes missing coverage. Please review.

Project coverage is 91.94%. Comparing base (d28876c) to head (08a3c8c).
Report is 52 commits behind head on master.

Files with missing lines Patch % Lines
components/icon/icon.directive.ts 93.33% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #8579      +/-   ##
==========================================
- Coverage   91.95%   91.94%   -0.01%     
==========================================
  Files         537      537              
  Lines       18452    18454       +2     
  Branches     2814     2815       +1     
==========================================
+ Hits        16967    16968       +1     
  Misses       1183     1183              
- Partials      302      303       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -71,7 +75,9 @@ export class NzIconDirective extends IconDirective implements OnInit, OnChanges,
private iconfont?: string;
private spin: boolean = false;

private destroy$ = new Subject<void>();
private destroyRef = inject(DestroyRef);
private pendingTasks = inject(ExperimentalPendingTasks);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
private pendingTasks = inject(ExperimentalPendingTasks);
private pendingTasks = inject(PendingTasks);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

icons rendering performance too slow.
3 participants