otodockal / ngZoneEventCoalescing

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ngZoneEventCoalescing

Turn on/off ngZoneEventCoalescing in main.ts and watch Angular CD cycles in devtools Profiler.

This option isn't 100% built-in replacement and has a few differences:

  • It hinders source events in Devtools, so instead of seeing Source:HTMLDocument.addEventListener:click, you see Source:fakeTopEventTask in current version of Angular/Zone.js.
  • CD is no longer synchronous, but asynchronous using requestAnimationFrame.

Even tho source events are swallowed, I think it's still worth the trouble.

About


Languages

Language:TypeScript 62.7%Language:JavaScript 14.5%Language:HTML 14.1%Language:SCSS 8.7%