-
Notifications
You must be signed in to change notification settings - Fork 250
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Optimize laggy forms calculation #2274
Comments
What if instead of handling changed input every time text is changed we handle input only when user stops writing ?
|
@MJ1998 yeah that could work well for edit text. What I did so far:
|
@shelaghm let me know if you're ok w this. |
@FikriMilano is working on this |
Is your feature request related to a problem? Please describe.
Calculation of enableWhenExpression and enableWhen happens in the UI thread, with a calculation that is heavy enough, it could cause severe lags when the user changes an answer especially typing.
Describe the solution you'd like
Move this process to the background thread and add a circular progress bar to the next button.
Describe alternatives you've considered
Have a proper dependency between expression, referenced items, and variables. To only calculate the referenced items and variable needed by that expression.
Handle input after user stops typing, in the case of edit text (From @MJ1998)
Additional context
N/A
Would you like to work on the issue?
Yes
The text was updated successfully, but these errors were encountered: