Frontmatter
| id | 8302 |
| title | [Neural Link] Enhance core.Base.serializeConfig to handle Neo Instances |
| state | Closed |
| labels | enhancementaiarchitecture |
| assignees | tobiu |
| createdAt | Jan 3, 2026, 8:46 PM |
| updatedAt | Jan 3, 2026, 8:48 PM |
| githubUrl | https://github.com/neomjs/neo/issues/8302 |
| author | tobiu |
| commentsCount | 0 |
| parentIssue | 8200 |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Jan 3, 2026, 8:48 PM |
Current
serializeConfigimplementation handles classes (constructors) but does not detect Neo instances. This creates circular dependency risks when serializing configs that contain instance references (e.g.KeyNavigationscopes).Task: Update
Neo.core.Base.prototype.serializeConfigto check for Neo instances.Implementation:
value instanceof Neo.core.Base(or usesisInstancesymbol if accessible, orvalue.isClasscheck).{ className: value.className, id: value.id }.Value:
toJSONoutputs.