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
blockedBy[]
blocking[]
closedAtJan 3, 2026, 8:48 PM

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

Closed v11.18.0 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 added the enhancement label on Jan 3, 2026, 8:46 PM
tobiu added the ai label on Jan 3, 2026, 8:46 PM
tobiu added the architecture label on Jan 3, 2026, 8:46 PM
tobiu assigned to @tobiu on Jan 3, 2026, 8:46 PM
tobiu added parent issue #8200 on Jan 3, 2026, 8:47 PM
tobiu referenced in commit 04f0f0d - "feat(core): Enhance serializeConfig to handle Neo instances (#8302)" on Jan 3, 2026, 8:47 PM
tobiu closed this issue on Jan 3, 2026, 8:48 PM
tobiu cross-referenced by #8301 on Jan 3, 2026, 8:51 PM