LearnNewsExamplesServices
Frontmatter
id8302
title[Neural Link] Enhance core.Base.serializeConfig to handle Neo Instances
stateClosed
labels
enhancementaiarchitecture
assigneestobiu
createdAtJan 3, 2026, 8:46 PM
updatedAtJan 3, 2026, 8:48 PM
githubUrlhttps://github.com/neomjs/neo/issues/8302
authortobiu
commentsCount0
parentIssue8200
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtJan 3, 2026, 8:48 PM

[Neural Link] Enhance core.Base.serializeConfig to handle Neo Instances

Closed v11.18.0/archive-v11-18-0-chunk-2 enhancementaiarchitecture
tobiu
tobiu commented on Jan 3, 2026, 8:46 PM

Current serializeConfig implementation handles classes (constructors) but does not detect Neo instances. This creates circular dependency risks when serializing configs that contain instance references (e.g. KeyNavigation scopes).

Task: Update Neo.core.Base.prototype.serializeConfig to check for Neo instances.

Implementation:

  • Check if value instanceof Neo.core.Base (or uses isInstance symbol if accessible, or value.isClass check).
  • If instance: return lightweight reference { className: value.className, id: value.id }.
  • Ensure it still handles Arrays and Objects recursively.

Value:

  • Prevents circular dependencies in toJSON outputs.
  • Standardizes instance references in serialized configs.
tobiu cross-referenced by #8301 on Jan 3, 2026, 8:51 PM