Frontmatter
| id | 4305 |
| title | form.field.Text: afterSetRequired(), afterSetValue() => only set silentVdomUpdate to false in case it was not true outside of this scope |
| state | Closed |
| labels | bug |
| assignees | tobiu |
| createdAt | Apr 20, 2023, 2:38 PM |
| updatedAt | Apr 20, 2023, 6:06 PM |
| githubUrl | https://github.com/neomjs/neo/issues/4305 |
| author | tobiu |
| commentsCount | 1 |
| parentIssue | null |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Apr 20, 2023, 6:06 PM |
form.field.Text: afterSetRequired(), afterSetValue() => only set silentVdomUpdate to false in case it was not true outside of this scope
tobiu assigned to @tobiu on Apr 20, 2023, 2:38 PM

tobiu
Apr 20, 2023, 3:30 PM
actually we can and should resolve this in a more generic way, using beforeSetVdomUpdate() to change the value into an integer. each additional set to true increases it further, zero enables updates again.
this.silentVdomUpdate = true; // 1
this.silentVdomUpdate = true; // 2
this.silentVdomUpdate = false; // 1 => not re-enabling updates
this.silentVdomUpdate = false; // 0 => updates enabled again
tobiu closed this issue on Apr 20, 2023, 6:06 PM
example: bulk config updates where we want to prevent updates until all of them are done.
setting the config to false earlier will result in multiple engine calls.