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.
The
Neo.vdom.Helperclass relies onNeo.configto 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.Helperimport intoonRegisterNeoConfigto ensureNeo.configis fully populated before the helper initializes.