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

Popular posts from this blog

javascript - Laravel datatable invalid JSON response -

java - Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; -

sql server 2008 - My Sql Code Get An Error Of Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '8:45 AM' to data type int -