LearnNewsExamplesServices
Frontmatter
id7785
titleImplement VDom Worker SSR Takeover Logic
stateClosed
labels
enhancementai
assigneestobiu
createdAtNov 17, 2025, 9:21 PM
updatedAtNov 17, 2025, 9:26 PM
githubUrlhttps://github.com/neomjs/neo/issues/7785
authortobiu
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtNov 17, 2025, 9:26 PM

Implement VDom Worker SSR Takeover Logic

Closed v11.5.0 enhancementai
tobiu
tobiu commented on Nov 17, 2025, 9:21 PM

This ticket documents the changes made to enable the VDom worker to correctly handle Server-Side Rendering (SSR) takeover.

Changes:

  1. src/worker/VDom.mjs:

    • A new onRegisterNeoConfig() method has been added.
    • This method checks for config.useSSR and config.idCounters in the initial configuration received from the WorkerManager.
    • If both are present, it uses Object.assign to merge the idCounters into Neo.core.IdGenerator.idCounter. This ensures that the client-side VDom worker continues ID generation from where the server left off, preventing ID collisions during SSR takeover.
  2. src/worker/Manager.mjs:

    • The createWorkers() method has been updated to consistently use useSSR (instead of useSsr) when injecting SSR-related configuration into the workers. This aligns with the framework's naming conventions.

These changes are crucial for the seamless integration of server-rendered content with the client-side VDom worker, supporting the overall SSR takeover strategy.

tobiu added the enhancement label on Nov 17, 2025, 9:21 PM
tobiu added the ai label on Nov 17, 2025, 9:21 PM
tobiu assigned to @tobiu on Nov 17, 2025, 9:21 PM
tobiu referenced in commit 4749d34 - "Implement VDom Worker SSR Takeover Logic #7785" on Nov 17, 2025, 9:21 PM
tobiu closed this issue on Nov 17, 2025, 9:26 PM