LearnNewsExamplesServices
Frontmatter
id7907
titleFix race condition in VDom worker initialization
stateClosed
labels
bugai
assigneestobiu
createdAtNov 26, 2025, 12:55 PM
updatedAtNov 26, 2025, 1:06 PM
githubUrlhttps://github.com/neomjs/neo/issues/7907
authortobiu
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtNov 26, 2025, 1:06 PM

Fix race condition in VDom worker initialization

Closed v11.11.0 bugai
tobiu
tobiu commented on Nov 26, 2025, 12:55 PM

The Neo.vdom.Helper class relies on Neo.config to determine which renderer utility to load (useDomApiRenderer). Currently, if imported at the top level of the VDom worker, Helper.initAsync() can execute before the worker has received the initial configuration from the main thread (registerNeoConfig). This leads to a race condition where the wrong renderer might be initialized.

Solution: Move the Neo.vdom.Helper import into onRegisterNeoConfig to ensure Neo.config is fully populated before the helper initializes.

tobiu added the bug label on Nov 26, 2025, 12:55 PM
tobiu added the ai label on Nov 26, 2025, 12:55 PM
tobiu assigned to @tobiu on Nov 26, 2025, 1:05 PM
tobiu referenced in commit c1956c1 - "Fix race condition in VDom worker initialization #7907" on Nov 26, 2025, 1:06 PM
tobiu closed this issue on Nov 26, 2025, 1:06 PM