Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
You should run a debouncer on those keystrokes. It will significantly increase your performance :)
-
@racsoraul I meant on every key type but yeah give it a shot, I'm sure it's the easiest clean fix to your problem here :)
-
@CodinNShakin I can't do that. Multiple validations need to run on field modification to compare it with others. For instance, there are fields inside sections that represent a "variable name" for the resulting schema form, so I need to check on every keystroke if the field is unique. If I do that until the end of a big form, the user experience for fixing those names of the whole form may be no that nice.
-
@racsoraul Yeah that's exactly where you need to implement it! Let me know how it goes :)
Related Rants
I made a web app where I can build any kind of form, with sections, validations, multiple type of inputs (even coordinates or polygons, photos, etc.) while allowing to see a preview of how that would look in a mobile app. That preview is because when you're done building the form and saved it to the DB, then in a mobile app (which I made as well) you can choose that form and use it.
Everything is beautiful, but after 3 sections with 25 questions each, everything becomes really slow because of the insane amount of actions that redux-form fires on every character type 😢
Today I made a public demonstration, and despite my code is very clean and well made, I think, that slowness made me look like a shitty developer, even thought I know what I made is like a 1000 times better than what I was asked to develop.
rant
redux-form
slowness