angular - What are zone turns? -
i encountered following error in angular2 application.
warning: application taking longer 2000 zone turns.
my question: 'zone turns', why warn me when above 2000? (i know can change limit, then, why this?)
this error produce angular2/universal. when zones microtask queue processed , after processing 2000 tasks queue there still pending tasks. might caused lots of async work enqueues lots of async tasks. angular expects queue become empty.
https://github.com/angular/universal/issues/377#issuecomment-215229702
you can set maxzoneturns 10000 if or higher
the source error created https://github.com/angular/universal/blob/9508ac03650ca0439192b8ed49ce8f1e57b6be33/modules/universal/src/node/bootloader.ts#l158
Comments
Post a Comment