LearnNewsExamplesServices
Frontmatter
id8129
titleManager.mjs: Transform autoMount to delta update
stateClosed
labels
airefactoringarchitecture
assigneestobiu
createdAtDec 16, 2025, 8:22 PM
updatedAtDec 16, 2025, 8:28 PM
githubUrlhttps://github.com/neomjs/neo/issues/8129
authortobiu
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtDec 16, 2025, 8:28 PM

Manager.mjs: Transform autoMount to delta update

Closed v11.17.0 airefactoringarchitecture
tobiu
tobiu commented on Dec 16, 2025, 8:22 PM

To remove the "magic placeholder" hack for autoMount and unify the DOM update pipeline, WorkerManager will now intercept autoMount messages, construct a proper insertNode delta from the payload, and route it through the updateVdom event.

Changes in src/worker/Manager.mjs:

  1. Detect data.data.autoMount.
  2. Construct a deltas array containing a single insertNode delta using parentIndex, parentId, vnode, and outerHTML from the message.
  3. Assign this deltas array to the payload.
  4. Fire updateVdom instead of automount.

This effectively moves autoMount operations to the updateQueue in Main, paving the way for removing the legacy writeQueue.

tobiu added the refactoring label on Dec 16, 2025, 8:22 PM
tobiu added the architecture label on Dec 16, 2025, 8:22 PM
tobiu assigned to @tobiu on Dec 16, 2025, 8:22 PM
tobiu referenced in commit f81d266 - "Manager.mjs: Transform autoMount to delta update #8129" on Dec 16, 2025, 8:28 PM
tobiu added the ai label on Dec 16, 2025, 8:28 PM
tobiu closed this issue on Dec 16, 2025, 8:28 PM