Frontmatter
| id | 9196 |
| title | Feature: Add Collection.updateKey() method |
| state | Closed |
| labels | enhancementcore |
| assignees | [] |
| createdAt | Feb 17, 2026, 3:15 PM |
| updatedAt | Mar 24, 2026, 9:54 AM |
| githubUrl | https://github.com/neomjs/neo/issues/9196 |
| author | tobiu |
| commentsCount | 1 |
| parentIssue | null |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Mar 24, 2026, 9:54 AM |

Objective
Add
updateKey(item, newKey)method toNeo.collection.Base.Motivation
When updating the key property of an item inside a Collection (e.g.
dataFieldincolumnPositions), developers currently have two bad options:remove(item)+add(item): Breaks array sort order (moves item to end).map.delete(old)+ update +map.set(new). Brittle and verbose.Proposal
Implement
updateKey(item, newKey)which:mapsafely.internalIdMapif tracked._itemsarray (Zero Array Mutation).keyProperty.Use Case
Fixing grid column reordering bugs where dynamic
dataFieldchanges break virtualization order.