The editor is slow when typing into fields. I suspect it can be improved debouncing the keys, because as of now validate() gets triggered more than necessary, but that's not the whole story.
I tried with a simple test: 15 keys pressed in ~1sec. The reference is my terminal emulator which has no input lag:
Terminal


Development with validate() disabled

Development with validate() disabled and rc-collapse removed

As you can see the slowest version is the deployed one, but my local version with validate() disabled (it just returns) is slow as well. I suspect rc-collapse (and possibly redux-form) is slowing things down, but my React-fu is not great.
Granted I'm using a CPU from 10 years ago, but it's noticeable even on newer ones.
The editor is slow when typing into fields. I suspect it can be improved debouncing the keys, because as of now
validate()gets triggered more than necessary, but that's not the whole story.I tried with a simple test: 15 keys pressed in ~1sec. The reference is my terminal emulator which has no input lag:
Terminal
Live site at https://publiccode-editor.developers.italia.it
Development with
validate()disabledDevelopment with
validate()disabled andrc-collapseremovedAs you can see the slowest version is the deployed one, but my local version with
validate()disabled (it just returns) is slow as well. I suspectrc-collapse(and possiblyredux-form) is slowing things down, but my React-fu is not great.Granted I'm using a CPU from 10 years ago, but it's noticeable even on newer ones.