Skip to content

fix(module:graph): remove NgZone dependency#8460

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

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

Conversation

@arturovt
Copy link
Member

This commit eliminates the NgZone dependency from the graph edge 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 graph edge 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`.
@zorro-bot
Copy link

zorro-bot bot commented Mar 21, 2024

This preview will be available after the AzureCI is passed.

@codecov
Copy link

codecov bot commented Mar 21, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.61%. Comparing base (3bd6d48) to head (6a3b676).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #8460   +/-   ##
=======================================
  Coverage   91.61%   91.61%           
=======================================
  Files         530      530           
  Lines       18391    18391           
  Branches     2813     2813           
=======================================
  Hits        16849    16849           
  Misses       1225     1225           
  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

@arturovt arturovt merged commit a4ec21a into NG-ZORRO:master Mar 22, 2024
@arturovt arturovt deleted the fix/graph-zone branch March 22, 2024 05:31
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