ngx-formly: Question: Typing response is really slow inside a form

Hi, I am opening a Material Dialog that renders a form. This technique is being used in all the app and all is working well.

Except today in a new dialog, there is slowness when typing inside the form fields. This dialog has different implementation than the rest but I made sure I didnโ€™t miss anything from the other implementation.

This new dialog renders a <form> with <formly-form> component.

It has also the OnPush Strategy.

Can you please guide on what to debug in order to know the reason behind this behavior?

Thanks

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 19 (18 by maintainers)

Most upvoted comments

Amazing @aitboudad Glad to know this detail ๐Ÿ˜ƒ Long Live formly ๐Ÿ˜ƒ

just forget about setTimeout, the root cause of slowness is whenever an event (Keydown) is triggered some components are re-rendered that include AdminTableComponent. start by commenting some part of your code until you find the component that caused that issue. as from our side, we canโ€™t help much more than that without a reproduction example ๐Ÿ™!

the easy way is to modify the source code through the node_modules else build the source code and use npm link.

  • avoid using formly-form inside field type

Two main part that you can check else there is something wrong on your code: