Frontmatter
| id | 8047 |
| title | [Container] Add silent parameter to add() method |
| state | Closed |
| labels | enhancementgood first issueai |
| assignees | tobiu |
| createdAt | Dec 7, 2025, 1:52 PM |
| updatedAt | Dec 7, 2025, 1:54 PM |
| githubUrl | https://github.com/neomjs/neo/issues/8047 |
| author | tobiu |
| commentsCount | 0 |
| parentIssue | null |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Dec 7, 2025, 1:54 PM |
The
Neo.container.Base.add(item)method currently does not support asilentparameter, unlikeinsert(index, item, silent)andremove(component, destroy, silent).This limitation forces a VDOM update cycle every time
add()is called, which is inefficient when adding multiple items sequentially or when managing complex state transitions (like in drag-and-drop operations) where we might want to defer the update.Task: Update
Neo.container.Base.prototype.addto accept asilentparameter and pass it through toinsert./** * Inserts an item or array of items at the last index * @param {Object|Array} item * @param {Boolean} [silent=false] * @returns {Neo.component.Base|Neo.component.Base[]} */ add(item, silent=false) { let me = this; return me.insert(me.items ? me.items.length : 0, item, silent) }