Skip to content

fix(module:autocomplete): remove NgZone dependency#8462

Merged
arturovt merged 1 commit intoNG-ZORRO:masterfrom
arturovt:fix/autocomplete-zone
Mar 25, 2024
Merged

fix(module:autocomplete): remove NgZone dependency#8462
arturovt merged 1 commit intoNG-ZORRO:masterfrom
arturovt:fix/autocomplete-zone

Conversation

@arturovt
Copy link
Member

This commit eliminates the NgZone dependency from the autocomplete component. Since zone.js is becoming optional, onStable won't emit any value when provideZonelessChangeDetection is used in the application config. Instead, we now use the alternative approach provided by afterNextRender. Most of the code that was using onStable should be replaced with afterNextRender.

This commit eliminates the `NgZone` dependency from the autocomplete component.
Since zone.js is becoming optional, `onStable` won't emit any value when `provideZonelessChangeDetection`
is used in the application config. Instead, we now use the alternative approach provided by `afterNextRender`.
Most of the code that was using `onStable` should be replaced with `afterNextRender`.
@arturovt arturovt requested a review from hsuanxyz as a code owner March 24, 2024 12:35
@zorro-bot
Copy link

zorro-bot bot commented Mar 24, 2024

This preview will be available after the AzureCI is passed.

@codecov
Copy link

codecov bot commented Mar 24, 2024

Codecov Report

Attention: Patch coverage is 50.00000% with 7 lines in your changes are missing coverage. Please review.

Project coverage is 91.60%. Comparing base (2c09162) to head (58638a4).

Files Patch % Lines
components/core/render/after-next-render.ts 44.44% 5 Missing ⚠️
components/auto-complete/autocomplete.component.ts 60.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #8462      +/-   ##
==========================================
- Coverage   91.61%   91.60%   -0.02%     
==========================================
  Files         530      531       +1     
  Lines       18391    18398       +7     
  Branches     2813     2813              
==========================================
+ Hits        16849    16853       +4     
- Misses       1225     1228       +3     
  Partials      317      317              

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

Copy link
Collaborator

@HyperLife1119 HyperLife1119 left a comment

Choose a reason for hiding this comment

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

LGTM

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.

2 participants